void-packages/srcpkgs/warsow/template

41 lines
1.5 KiB
Plaintext
Raw Normal View History

2012-07-29 09:55:28 +02:00
# Template file for 'warsow'
pkgname=warsow
2014-05-04 10:55:09 +02:00
version=1.5
revision=1
create_wrksrc=yes
wrksrc="warsow_${version/./}_sdk"
hostmakedepends="pkg-config"
makedepends="libcurl-devel libvorbis-devel libtheora-devel
2013-04-30 12:01:35 +02:00
libjpeg-turbo-devel libpng-devel>=1.6 SDL-devel libopenal-devel MesaLib-devel
2014-05-04 10:55:09 +02: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 10:55:09 +02:00
depends="desktop-file-utils warsow-data>=1.5 libopenal"
2012-07-29 09:55:28 +02: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-05-04 10:55:09 +02:00
distfiles="http://www.warsow.eu/warsow_${version/./}_sdk.tar.gz"
checksum=277bbe87744352ee02476dc1bf9258ed5b204345b1b8eb394442dcec6a956949
2012-07-29 09:55:28 +02:00
do_build() {
2014-05-04 10:55:09 +02:00
cd ${wrksrc}/source/source
2012-07-29 09:55:28 +02:00
make
}
do_install() {
# Move Compiled Data to Destination Directory
vmkdir usr/share/warsow
2014-05-04 10:55:09 +02:00
vcopy "source/source/release/*" usr/share/warsow
2014-05-04 11:15:24 +02:00
chmod 755 ${DESTDIR}/usr/share/warsow/warsow
2014-05-04 10:55:09 +02: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 09:55:28 +02: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
}