#Maintainer: Max Boon (maximus) pkgname=bzflag pkgver=2.0.12 pkgrel=1 zenver=62 arch=i686 source=("http://pnboy.pinguix.com/atticus/www/files/bzflag/$pkgname-$pkgver.tar.gz" \ "http://pnboy.pinguix.com/atticus/www/files/bzflag/bzflag.desktop" \ "http://pnboy.pinguix.com/atticus/www/files/bzflag/icons.tar.gz" \ "http://pnboy.pinguix.com/atticus/www/files/bzflag/bzflag-2.0.12-gcc-4.4.patch" \ "http://pnboy.pinguix.com/atticus/www/files/bzflag/bzflag-2.0.12-findresolutions.patch") sourcetemplate=http://pnboy.pinguix.com/atticus/www/files/$pkgname/ docs=('authors' 'copying' 'changelog' 'install' 'news' 'notes' 'readme' 'todo') url="http://bzflag.org/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "bzflag - 3D tank battle game" "BZFlag is an Open Source OpenGL multiplayer multiplatform Battle Zone" "capture the Flag game. At its heart, the game is a 3D first person" "tank simulation where opposing teams battle for dominance. The game" "was originally written for SGI computers running Irix, but now runs" "and is actively maintained on Windows, Linux, Mac OS X, BSD, Solaris," "and other platforms. The game is distributed under the LGPL license." ) build() { cd $startdir/src/$pkgname-$pkgver patch -Np1 -i $startdir/src/bzflag-2.0.12-gcc-4.4.patch patch -Np1 -i $startdir/src/bzflag-2.0.12-findresolutions.patch ./configure --prefix=/usr --enable-optimized --enable-shared make || return 1 make DESTDIR=$startdir/pkg install # Copy icons to the right place ICONSIZES="128 72 64 48 32 24 22 16" for i in $ICONSIZES; do mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps; mv $startdir/src/$pkgname-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/$pkgname.png; done; }