updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / urbanterror-server / PKGBUILD
blob4b62ae71c18863e40cdda5887631c7688930c0a0
2 # Contributor: Gereon Schomber
3 # Original PKGBUILD by grimi <grimi@poczta.fm>
5 pkgname=urbanterror-server
6 pkgver=4.1
7 pkgrel=3
8 pkgdesc="Urban Terror is a team-based tactical shooter based on the Quake 3 Engine (server only)"
9 arch=('i686' 'x86_64')
10 url="http://www.urbanterror.net"
11 license=('GPL2')
12 depends=('urbanterror-data')
13 conflicts=('urbanterror')
14 makedepends=('unzip')
15 source=("http://daffy.nerius.com/src/ioUrbanTerrorSource_2007_12_20-patchedserver_2.zip" \
16         "urbanterror-server.sh")
18 build() {
20         ## checkup machine
21         [ "$CARCH" = "i686"   ] && ARCH=i386
22         [ "$CARCH" = "x86_64" ] && ARCH=x86_64
24         ## prepare folder
25         install -d $pkgdir/opt/urbanterror/
27         ## compile server
28         cd $srcdir/ioUrbanTerrorServerSource
29         make || return 1
30         install -m755 build/release-linux-$ARCH/ioUrTded.$ARCH \
31                 $pkgdir/opt/urbanterror/ioUrTded
33         ## launch scripts
34         install -Dm755 $srcdir/urbanterror-server.sh $pkgdir/usr/bin/urbanterror-server
37 md5sums=('46a6fdb103b40b09864e24e15b96aa99'
38          'effe9b87616358840c44ad7c37b5538f')