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

# source: james
TARBALL=armagetronad-0.2.8.3.2.1.src.tar.bz2
MD5SUM=9bdba18250d3313134bf69db82115ddb
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 0.2.8.3.2.1 (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 &&
	mv /usr/share/games/armagetronad/desktop/armagetronad.desktop /usr/share/applications &&
	rm -rf /usr/share/games/armagetronad/desktop
}


