void-packages/srcpkgs/armagetronad/template
2016-03-08 13:27:43 -05:00

62 lines
1.5 KiB
Bash

# Template file for 'armagetronad'
pkgname=armagetronad
version=0.2.8.3.3
revision=1
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 <Vaelatern@gmail.com>"
license="GPL-2"
homepage="http://armagetronad.org"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.src.tar.bz2"
checksum=ddf2d781b134392e9667f17e0319ae2117c20e6eb7738e3cacd701f3608ea5e8
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 /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
}
}