void-packages/srcpkgs/warsow/template

41 lines
1.5 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
2014-05-04 08:55:09 +00:00
revision=1
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
do_build() {
2014-05-04 08:55:09 +00:00
cd ${wrksrc}/source/source
2012-07-29 07:55:28 +00:00
make
}
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
vinstall ${FILESDIR}/warsow.launcher 755 usr/bin warsow
vinstall ${FILESDIR}/wsw-server.launcher 755 usr/bin wsw-server
vinstall ${FILESDIR}/wswtv-server.launcher 755 usr/bin wswtv-server
vinstall ${FILESDIR}/warsow.desktop 644 usr/share/applications
vinstall ${FILESDIR}/warsow.png 644 usr/share/pixmaps
}