updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / darkplaces-server / PKGBUILD
blobb8b46b464ea5ae2493d03b093d446003376f19ef
1 # Maintainer: Joe Davison <joedavison.davison@gmail.com>
3 pkgname=darkplaces-server
4 pkgver=20110628
5 pkgrel=1
6 pkgdesc="An advanced Quake 1 game engine, server only."
7 arch=('i686' 'x86_64')
8 url="http://icculus.org/twilight/darkplaces/"
9 license=('GPL2')
10 depends=()
11 makedepends=()
12 install=$pkgname.install
13 source=(http://icculus.org/twilight/darkplaces/files/darkplacesengine$pkgver.zip)
14 md5sums=('c42103732cedfcf385ee959db9db6cb4')
15 build() {
16     # Extract the package
17     cd $srcdir
18     bsdtar -xf darkplacesenginesource$pkgver.zip || return 1
20     # Compile
21     cd darkplaces
22     make OPTIM_RELEASE="${CFLAGS}" DP_FS_BASEDIR=/usr/share/quake sv-release || return 1
24     # Install binary, icon and desktop files
25     install -d $pkgdir/usr/{bin,share/quake}
26     install -m 755 darkplaces-dedicated $pkgdir/usr/bin/