void-packages/srcpkgs/warsow/template
2015-03-11 18:21:24 +01:00

46 lines
1.6 KiB
Text

# Template file for 'warsow'
pkgname=warsow
version=1.51
revision=3
create_wrksrc=yes
wrksrc="warsow_${version/./}_sdk"
hostmakedepends="pkg-config"
makedepends="libcurl-devel libvorbis-devel libtheora-devel
libjpeg-turbo-devel libpng-devel>=1.6 SDL-devel libopenal-devel MesaLib-devel
libXext-devel libXinerama-devel libXrandr-devel libXxf86vm-devel libXi-devel
libXxf86dga-devel>=1.1.3 fontconfig-devel"
# libopenal is dlopen(3)ed at runtime.
depends="desktop-file-utils warsow-data>=1.5 libopenal"
short_desc="Free online multiplayer competitive FPS based on the Qfusion engine"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://www.warsow.net/"
distfiles="http://update.warsow.net/mirror/warsow_${version}_sdk.tar.gz"
checksum=ac635c654e088566d30d53e8fab21abd2d40762d7f4ab0e09faa827aac5c4f97
post_extract() {
if [ "$XBPS_TARGET_MACHINE" != "i686" -a "$XBPS_TARGET_MACHINE" != "x86_64" ]; then
sed -i 's/-msse2//' source/source/Makefile
fi
}
do_build() {
cd source/source
make ${makejobs}
}
do_install() {
# Move Compiled Data to Destination Directory
vmkdir usr/share/warsow
vcopy "source/source/release/*" usr/share/warsow
chmod 755 ${DESTDIR}/usr/share/warsow/warsow
find ${DESTDIR}/usr/share/warsow -type d | xargs chmod 755
find ${DESTDIR}/usr/share/warsow -type f | xargs chmod 755 # only executable files in there
vbin ${FILESDIR}/warsow.launcher warsow
vbin ${FILESDIR}/wsw-server.launcher wsw-server
vbin ${FILESDIR}/wswtv-server.launcher wswtv-server
vinstall ${FILESDIR}/warsow.desktop 644 usr/share/applications
vinstall ${FILESDIR}/warsow.png 644 usr/share/pixmaps
}