updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / xevil / PKGBUILD
blob999df87d22b20f5316ab5e0a2e51263453d430e7
1 # Maintainer: Corrado 'bardo' Primier <ilbardo@gmail.com>
2 # Contributor: Jabir Ali Ouassou
3 # Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
4 # Contributor: Michal 'dta' Hybner <dta081@gmail.com>
6 pkgname=xevil
7 pkgver=2.02r2
8 pkgrel=2
9 pkgdesc="3rd person, side-view, fast-action, kill-them-before-they-kill-you game"
10 arch=('i686' 'x86_64')
11 url="http://www.xevil.com/"
12 license=('GPL')
13 depends=('gcc-libs' 'libxpm')
14 makedepends=('unzip')
15 source=(http://www.xevil.com/download/stable/xevilsrc${pkgver}.zip
16         http://ftp.debian.org/debian/pool/main/x/xevil/xevil_$pkgver-9.diff.gz
17         x86_64.patch)
18 md5sums=('09a9ef720b7204b0be68c4f462def370'
19          '8b32d693de5a3e67e16eb7c0d78116c9'
20          '33c9dcfd85e5c21db0f00de86a6db255')
21 noextract=(xevilsrc${pkgver}.zip)
23 build() {
24   unzip -ao xevilsrc${pkgver}.zip
26   patch -Np1 -i ${srcdir}/xevil_${pkgver}-9.diff
27   patch -Np0 -i ${srcdir}/x86_64.patch
28   sed --in-place\
29       --expression='s:-static::'\
30       --expression="s:CFLAGS=\":CFLAGS=\"${CFLAGS} :g"\
31       --expression='s:-lXpm:-lXpm -lpthread:g'\
32       config.mk
34   make DEBUG_OPT="-O -DNDEBUG" || return 1
36   install -Dm755 x11/REDHAT_LINUX/xevil ${pkgdir}/usr/bin/${pkgname}
37   install -Dm755 x11/REDHAT_LINUX/serverping ${pkgdir}/usr/bin/${pkgname}-serverping
40 # vim:set ts=2 sw=2 et: