void-packages/srcpkgs/armagetronad/template

64 lines
1.6 KiB
Bash

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