1 # Contributor: Paolo Giangrandi <peoro.noob@gmail.com>
2 # Contributor: Marc poiroud <marciun@free.fr>
7 pkgdesc="A fun RTS game featuring snowball fights with penguins."
9 depends=('python' 'python-pygame' 'python-opengl' 'python-rabbyt')
10 install=snowballz.install
11 source=(http://joey101.net/snowballz/files/$pkgname-$pkgver.tar.gz snowballz.desktop snowballz.png \
12 snowballz snowballz.install)
13 md5sums=('197e3281cc85f9fe89a45c622e08ba0d' 'abe4faa6864022e3274955039792e1c7' \
14 '1eb0c353d99dc54d02c340fc057d28d2' '7fdfd218e42f763d37312cc1181378b6' \
15 '291effd03d9a528519ba1bacfdf976d7')
16 arch=('i686' 'x86_64')
17 url="http://joey101.net/snowballz/"
20 cd $startdir/src/$pkgname-$pkgver
21 install -d -m755 $startdir/pkg/usr/share/{$pkgname,pixmaps,applications}
23 # removing pygame.mixer calls, since it doesn't support MP3s and that crashes the game
24 for i in *.py; do cat $i | sed -r "s/^([ \t]*)(pygame\.mixer.*)$/\1pass/" > _tmp_$i_; rm -f $i; mv _tmp_$i_ $i; done
26 # copy to final directory
27 cp -r *.py buildings data maps plugins cellulose gooeypy $startdir/pkg/usr/share/$pkgname/
29 # create false exe in /usr/bin
30 install -D -m755 $startdir/src/snowballz $startdir/pkg/usr/bin/snowballz
32 # create menu integration with desktop file and PNG
33 install -m644 $startdir/src/snowballz.png $startdir/pkg/usr/share/pixmaps/snowballz.png
34 install -m644 $startdir/src/snowballz.desktop $startdir/pkg/usr/share/applications/snowballz.desktop