1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
2 pkgname=sauerbraten-stats-git
5 pkgdesc="Put persistent stats on the sauerbraten scoreboard."
7 url="http://github.com/sjuxax/cube2_stable"
9 depends=('sauerbraten=2010_07_28_justice_edition-2')
12 _gitroot="git://github.com/sjuxax/cube2-stable.git"
13 _gitname="cube2-stable"
17 msg "Connecting to GIT server...."
19 if [ -d $_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
23 git clone $_gitroot $_gitname
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"
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