updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / angryanimals / PKGBUILD
blob06f185158f0322d00cb763373c65bbce21486461
1 # Maintainer: Simone Sclavi 'Ito' darkhado@gmail.com
3 pkgname=angryanimals
4 pkgver=23.11_001
5 pkgrel=1
6 arch=('any')
7 pkgdesc='Launch the animals into the building to destroy it! (Angry Birds-like
8 game)'
9 url='http://www.flashninjaclan.com/zzz5813_Angry_Animals.php'
10 license=('custom')
11 depends=('flashplayer-standalone')
12 makedepends=('imagemagick')
13 source=("http://www.flashninjaclan.com/games2/angryanimals/${pkgname}.swf"
14 "http://www.flashninjaclan.com/games2/angryanimals/${pkgname}.jpg")
15 md5sums=('a9523aaeedef77266375fa91606a5653'
16          '724f1cdce7300300ef9ad44f05450f3f')
17 package(){
18     # Install icon
19     convert $pkgname.jpg $pkgname.png
20     install -D -m644 $pkgname.png  ${pkgdir}/usr/share/pixmaps/${pkgname}.png
22     # Install the .swf file
23     install -D -m644 ${pkgname}.swf ${pkgdir}/usr/share/${pkgname}/${pkgname}.swf
25     # Make desktop  launcher and install it
26     local DESKTOP=angryanimals.desktop
27     echo  "[Desktop Entry]" >> $DESKTOP
28     echo "Type=Application" >> $DESKTOP
29     echo "Terminal=false" >> $DESKTOP
30     echo "Exec=flashplayer /usr/share/${pkgname}/${pkgname}.swf" >> $DESKTOP
31     echo "Name=Angry Animals" >> $DESKTOP
32     echo "Comment=Angry Animals (c) http://www.flashninjaclan.com/" >> $DESKTOP
33     echo "Icon=${pkgname}.png" >> $DESKTOP
34     echo "Categories=Game;ActionGame;" >> $DESKTOP
35     install -D -m644 $DESKTOP ${pkgdir}/usr/share/applications/$DESKTOP
36