1 # Contributor: Prurigro
7 pkgdesc="Adobe Air Application for Youtube using a Custom SVG Iconset"
9 url="http://thedesktube.com/"
11 source=(http://thedesktube.com/DeskTube.air
15 md5sums=('a97196acd6c9621dac0303c4acb5881a'
16 '1866411ee1e40f46ba94578f3936a5dc'
17 'b9f513990f62011a18ebb1c3e0dc6eb8'
18 'b76586826476187e7e0ab008ca240e67')
20 makedepends=('unzip' 'imagemagick')
23 if [ -d ${startdir}/src/DeskTube ]; then
24 echo "==> Remove build directory and try again"
27 install -d ${startdir}/src/DeskTube || return 1
28 pushd ${startdir}/src/DeskTube || return 1
30 unzip ../DeskTube.air || return 1
31 convert -background transparent -scale 32x32 ../desktube.svg png:icons/icon_016.png || return 1
32 convert -background transparent -scale 32x32 ../desktube.svg png:icons/icon_032.png || return 1
33 convert -background transparent -scale 48x48 ../desktube.svg png:icons/icon_048.png || return 1
34 convert -background transparent ../desktube.svg png:icons/icon_128.png || return 1
35 zip -r DeskTube.air * || return 1
36 install -d ${pkgdir}/usr/share/desktube || return 1
37 install -D -m644 DeskTube.air ${pkgdir}/usr/share/desktube/ || return 1
39 pushd ${startdir}/src || return 1
40 install -d ${pkgdir}/usr/share/applications || return 1
41 install -m644 -D desktube.desktop ${pkgdir}/usr/share/applications/ || return 1
42 install -d ${pkgdir}/usr/share/pixmaps || return 1
43 install -m644 -D desktube.svg ${pkgdir}/usr/share/pixmaps/ || return 1
44 install -d ${pkgdir}/usr/bin || return 1
45 install -m755 -D desktube ${pkgdir}/usr/bin/ || return 1