64 lines
1.6 KiB
Bash
64 lines
1.6 KiB
Bash
# Template file for 'armagetronad'
|
|
pkgname=armagetronad
|
|
version=0.2.9.1.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
conf_files="/etc/games/${pkgname}/*.cfg
|
|
/etc/games/${pkgname}/*.srv"
|
|
configure_args="--disable-useradd"
|
|
hostmakedepends="m4 pkg-config"
|
|
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="https://armagetronad.org"
|
|
distfiles="https://launchpad.net/armagetronad/${version%.*.*}/${version}/+download/armagetronad-${version}.tbz"
|
|
checksum=f617de700ecf1dd11f75e2932ee74796729112352d5cabaa2bc479add7dffd32
|
|
python_version=3
|
|
|
|
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
|
|
}
|
|
}
|