updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / sauerbraten-stats-git / PKGBUILD
blobbdb185fc5cd37221c474e00b7dd30663c18832cc
1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
2 pkgname=sauerbraten-stats-git
3 pkgver=20100808
4 pkgrel=1
5 pkgdesc="Put persistent stats on the sauerbraten scoreboard."
6 arch=('i686' 'x86_64')
7 url="http://github.com/sjuxax/cube2_stable"
8 license=('mit')
9 depends=('sauerbraten=2010_07_28_justice_edition-2')
10 makedepends=('git')
12 _gitroot="git://github.com/sjuxax/cube2-stable.git"
13 _gitname="cube2-stable"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   #rm -rf "$srcdir/$_gitname-build"
30   #git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname"
33   make || return 1
34   mkdir -p ${pkgdir}/opt/sauerbraten/bin
35   cp /opt/sauerbraten/bin/linux_client ${pkgdir}/opt/sauerbraten/bin/no-score-linux_client
36   cp sauer_client ${pkgdir}/opt/sauerbraten/bin/linux_client