### this file is sourced not run
PKGVER=0.2.8.3.4
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=armagetronad-$PKGVER.src.tar.bz2
MD5SUM=451c074e8e07b57f3cb69e2e5e511749
SRC_URL=http://downloads.sourceforge.net/armagetronad/$TARBALL
BUNDLE=

SLACKREQ='libSDL libSDL-mixer libSDL-image libpng' # and OpenGL libs, e.g. Mesa or proprietary
SLACKDESC="armagetronad: armagetronad $PKGVER (3D Tron game clone)  
armagetronad:  
armagetronad: Armagetron is a multiplayer game in 3d that attempts to emulate 
armagetronad: and expand on the lightcycle sequence from the movie Tron. It's 
armagetronad: an old school arcade game slung into the 21st century. 
armagetronad: Highlights include a customizable playing arena, HUD, unique 
armagetronad: graphics, and AI bots. For the more advanced player there are 
armagetronad: new game modes and a wide variety of physics settings to tweak 
armagetronad: as well.  
armagetronad: 
armagetronad: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/armagetronad*
	sed -i -e 's|png_check_sig|png_sig_cmp|g' configure && # obsolete png check
	CONFFLAGS="$CONFFLAGS --enable-music" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	
	# move icons and desktop file to its proper place
	mv /usr/share/games/armagetronad/desktop/icons/large/armagetronad.png /usr/share/pixmaps &&
	sed -i 's/armagetronad.png/armagetronad/' /usr/share/games/armagetronad/desktop/armagetronad.desktop &&
	mv /usr/share/games/armagetronad/desktop/armagetronad.desktop /usr/share/applications &&
	rm -rf /usr/share/games/armagetronad/desktop
}


