# Template file for 'armagetronad' pkgname=armagetronad version=0.2.8.3.4 revision=2 build_style=gnu-configure conf_files="/etc/games/${pkgname}/*.cfg /etc/games/${pkgname}/*.srv" configure_args="--disable-useradd" hostmakedepends="m4" makedepends="libX11-devel libxml2-devel libICE-devel libpng-devel glu-devel libjpeg-turbo-devel SDL_image-devel SDL_mixer-devel" short_desc="3D Lightcycle game from the movie Tron with advanced capabilities" maintainer="Toyam Cox " license="GPL-2" homepage="http://armagetronad.org" distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.src.tar.bz2" checksum=23afa6d961cdcdf391849e1a4fafe8fc3330d9a8cb6671565b0303c709baf794 do_configure() { mkdir build_dedicated mkdir build_client cd build_dedicated ../configure ${configure_args} --enable-dedicated cd ../build_client ../configure ${configure_args} --enable-master --enable-main --enable-music } do_build() { cd build_dedicated make ${makejobs} cd ../build_client make ${makejobs} } do_install() { cd build_dedicated make DESTDIR=${DESTDIR} install cd ../build_client make DESTDIR=${DESTDIR} install } post_install() { vsv armagetronad-dedicated rm -rf ${DESTDIR}/etc/init.d } armagetronad-dedicated_package() { short_desc+=" - dedicated server" conf_files="/etc/games/${pkgname}/*.cfg /etc/games/${pkgname}/*.srv" pkg_install() { vmove /usr/bin/armagetronad-dedicated vmove /etc/sv vmove /etc/games/armagetronad-dedicated vmove /usr/share/games/armagetronad-dedicated vmove /usr/share/doc/games/armagetronad-dedicated } }