updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / ddrace-git / PKGBUILD
blob490f7833b5a811353d17c7a6e7932d4b51ec0f92
3 pkgname=ddrace-git
4 url="http://ddrace.info"
5 pkgver=0.5
6 _dirname=ddrace
7 pkgrel=2
8 pkgdesc="DDRace server and deamon for Teeworlds. Current Github."
9 arch=('i686' 'x86_64')
10 license=('custom')
11 makedepends=('python')
12 depends=('git' 'bam')
13 source=('http://fluxid.pl/teeworlds/maps/campotle.map' 
14         'ddraced'
15         'ddrace.conf'
16         'campotle.map')
17 md5sums=('1ed8b71e5285a58b58f0ef2971979d34'
18         'a32485c2dbb4e3246bd7af135e80ad26'
19         '24c3614d48c04e5283c56f9e533a731f'
20         '1ed8b71e5285a58b58f0ef2971979d34')
21 #install=${pkgname}.install
23 build() {
25   #get the source
26   if [ -d DDRace ]; then
27     cd DDRace
28     git pull
29   else 
30     git clone git://github.com/GreYFoXGTi/DDRace.git
31   fi
33   #Build DDrace
34   cd ${srcdir}/DDRace
35     
36   bam server_release  || return 1
38   # Install the server 
39   install -Dm755 ${srcdir}/DDRace/DDRace_Trunk-Server \
40     ${pkgdir}/usr/bin/${_dirname}_srv || return 1
42   
43   install -Dm755 ${srcdir}/campotle.map \
44     ${pkgdir}/etc/maps/campotle.map || return 1
46   install -Dm755 ${srcdir}/ddrace.conf \
47     ${pkgdir}/etc/ddrace.conf || return 1
49   mkdir -p ${pkgdir}/etc/rc.d
50   install -Dm755 ${srcdir}/ddraced \
51     ${pkgdir}/etc/rc.d/ddraced || return 1