1 # Maintainer: Ricky Thomson <punkrockunix at gmail dot com>
3 pkgname=frogmod-justice-git
6 pkgdesc="A modified Sauerbraten server for the 2010 'Justice' edition of the game."
7 url="http://www.mappinghell.net/frogmod/"
11 depends=('zlib' 'geoip')
14 source=('frogserv.sh')
15 md5sums=('62735888c07dd0e5cd1511e3aa9af4a9')
17 _gitname="frogmod-justice"
18 _gitroot="git://github.com/vampirefrog/${_gitname}.git"
23 msg "Connecting to GIT (${_gitroot}) ..."
25 if [ -d ${_gitname} ]; then
26 cd ${_gitname} && git pull origin
27 msg "The local files of ${_gitname} were updated."
29 git clone ${_gitroot} ${_gitname}
32 msg "GIT checkout done or server timeout"
34 cd "${srcdir}/${_gitname}"
36 # Reset LDFLAGS, for some reason it fails at linking with arch defaults
39 ./config.sh || return 1
46 cd "${srcdir}/${_gitname}"
48 mkdir -p ${pkgdir}{/usr/sbin/,/opt/frogmod-justice/{doc,bin,web}}
51 install -Dm755 ../frogserv.sh ${pkgdir}/usr/sbin/frogserv
54 install -Dm755 frogserv ${pkgdir}/opt/frogmod-justice/bin/frogserv
57 install -Dm644 server-init-example.cfg ${pkgdir}/opt/frogmod-justice/server-init-example.cfg
58 install -Dm644 stdlib.cfg ${pkgdir}/opt/frogmod-justice/stdlib.cfg
61 install -Dm644 readme_source.txt ${pkgdir}/opt/frogmod-justice/doc/readme_source.txt
62 install -Dm644 README ${pkgdir}/opt/frogmod-justice/doc/README
65 install -Dm644 web/* ${pkgdir}/opt/frogmod-justice/web/