1 # Contributor: rabyte <rabyte__gmail>
6 pkgdesc="An enhanced clone of Super Pang, a fast-paced action game that involves popping balloons with a harpoon"
8 url="http://apocalypse.rulez.org/pangzero/Pang_Zero"
10 depends=('sdl_perl-old')
11 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz \
12 remove-nag+fps-counter.diff \
14 md5sums=('57a3ba5bf4f0e4a9590fbd6606c9f91c'
15 '38d4ee2aed821fe6f04f2c50728afa36'
16 '25cba09eedf85844fddcdeed52287c87')
19 cd $srcdir/$pkgname-$pkgver
21 # remove nag (auto-opening of website after quitting game) + FPS counter
22 patch -Np0 -i ../remove-nag+fps-counter.diff || return 1
24 # Make sure configure finds SDL_Perl (old version)
25 PERL5LIB="/opt/sdl_perl" ./configure --prefix=/usr
30 cd $srcdir/$pkgname-$pkgver
32 make DESTDIR=$pkgdir install
34 install -m644 -D data/icon.png $pkgdir/usr/share/pixmaps/pangzero.png
35 install -m644 -D ../pangzero.desktop $pkgdir/usr/share/applications/pangzero.desktop
36 sed -i '2iuse lib "/opt/sdl_perl";' "$pkgdir/usr/bin/pangzero"