updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pangzero / PKGBUILD
blob34236b607fcadbcf116512fb1b6fa82772740d2c
1 # Contributor: rabyte <rabyte__gmail>
3 pkgname=pangzero
4 pkgver=1.3
5 pkgrel=5
6 pkgdesc="An enhanced clone of Super Pang, a fast-paced action game that involves popping balloons with a harpoon"
7 arch=('any')
8 url="http://apocalypse.rulez.org/pangzero/Pang_Zero"
9 license=('GPL2')
10 depends=('sdl_perl-old')
11 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz \
12         remove-nag+fps-counter.diff \
13         $pkgname.desktop)
14 md5sums=('57a3ba5bf4f0e4a9590fbd6606c9f91c'
15          '38d4ee2aed821fe6f04f2c50728afa36'
16          '25cba09eedf85844fddcdeed52287c87')
18 build() {
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
26   make
29 package() {
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"