void-packages/srcpkgs/warsow/template

47 lines
1.6 KiB
Text
Raw Normal View History

2012-07-29 07:55:28 +00:00
# Template file for 'warsow'
pkgname=warsow
2014-06-23 08:00:42 +00:00
version=1.51
revision=2
2014-05-04 08:55:09 +00:00
create_wrksrc=yes
wrksrc="warsow_${version/./}_sdk"
hostmakedepends="pkg-config"
makedepends="libcurl-devel libvorbis-devel libtheora-devel
2013-04-30 10:01:35 +00:00
libjpeg-turbo-devel libpng-devel>=1.6 SDL-devel libopenal-devel MesaLib-devel
2014-05-04 08:55:09 +00:00
libXext-devel libXinerama-devel libXrandr-devel libXxf86vm-devel libXi-devel
libXxf86dga-devel>=1.1.3 fontconfig-devel"
# libopenal is dlopen(3)ed at runtime.
2014-05-04 08:55:09 +00:00
depends="desktop-file-utils warsow-data>=1.5 libopenal"
2012-07-29 07:55:28 +00:00
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/"
2014-06-23 08:00:42 +00:00
distfiles="http://www.warsow.eu/warsow_${version}_sdk.tar.gz"
checksum=ac635c654e088566d30d53e8fab21abd2d40762d7f4ab0e09faa827aac5c4f97
2012-07-29 07:55:28 +00:00
2014-08-28 12:26:58 +00:00
post_extract() {
2014-08-28 13:21:07 +00:00
if [ "$XBPS_TARGET_MACHINE" != "i686" -a "$XBPS_TARGET_MACHINE" != "x86_64" ]; then
2014-08-28 12:26:58 +00:00
sed -i 's/-msse2//' source/source/Makefile
fi
}
2012-07-29 07:55:28 +00:00
do_build() {
2014-08-28 12:26:58 +00:00
cd source/source
make ${makejobs}
2012-07-29 07:55:28 +00:00
}
do_install() {
# Move Compiled Data to Destination Directory
vmkdir usr/share/warsow
2014-05-04 08:55:09 +00:00
vcopy "source/source/release/*" usr/share/warsow
2014-05-04 09:15:24 +00:00
chmod 755 ${DESTDIR}/usr/share/warsow/warsow
2014-05-04 08:55:09 +00:00
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
2012-07-29 07:55:28 +00:00
vbin ${FILESDIR}/warsow.launcher warsow
vbin ${FILESDIR}/wsw-server.launcher wsw-server
vbin ${FILESDIR}/wswtv-server.launcher wswtv-server
2012-07-29 07:55:28 +00:00
vinstall ${FILESDIR}/warsow.desktop 644 usr/share/applications
vinstall ${FILESDIR}/warsow.png 644 usr/share/pixmaps
}