updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / desktube-slick / PKGBUILD
blobd04c9af9080bfe85b4efd9568896803208a3bd34
1 # Contributor: Prurigro
2 # Maintainer: Prurigro
4 pkgname=desktube-slick
5 pkgver=72.0.9
6 pkgrel=1
7 pkgdesc="Adobe Air Application for Youtube using a Custom SVG Iconset"
8 arch=('i686' 'x86_64')
9 url="http://thedesktube.com/"
10 license=('custom')
11 source=(http://thedesktube.com/DeskTube.air
12         desktube.desktop
13         desktube.svg
14         desktube)
15 md5sums=('a97196acd6c9621dac0303c4acb5881a'
16          '1866411ee1e40f46ba94578f3936a5dc'
17          'b9f513990f62011a18ebb1c3e0dc6eb8'
18          'b76586826476187e7e0ab008ca240e67')
19 depends=('adobe-air')
20 makedepends=('unzip' 'imagemagick')
22 build() {
23         if [ -d ${startdir}/src/DeskTube ]; then
24                 echo "==> Remove build directory and try again"
25                 return 1
26         fi
27         install -d ${startdir}/src/DeskTube || return 1
28         pushd ${startdir}/src/DeskTube || return 1
29                 
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
38         popd || 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
46         popd || return 1