1 # Maintainer: Anton Larionov <diffident dot cat at gmail dot com>
2 # Contributor: zoulnix <http://goo.gl/HQaP>
7 pkgdesc="A full 3D city simulator game project (SVN-version)"
9 url="http://opencity.info/"
11 depends=('mesa' 'sdl_image' 'sdl_net' 'sdl_mixer')
12 makedepends=('subversion')
13 conflicts=('opencity')
16 _svntrunk="https://opencity.svn.sourceforge.net/svnroot/opencity/trunk/opencity"
21 msg "Connecting to SVN server...."
23 if [[ -d "$_svnmod/.svn" ]]; then
24 (cd "$_svnmod" && svn up -r "$pkgver")
26 svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
29 msg "SVN checkout done or server timeout"
30 msg "Starting build..."
32 rm -rf "$srcdir/$_svnmod-build"
33 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
34 cd "$srcdir/$_svnmod-build"
40 ./configure --prefix=/usr --sysconfdir=/etc
45 cd "$srcdir/$_svnmod-build"
46 make DESTDIR="${pkgdir}/" install
48 # Removing unnecessary stuff
49 find "${pkgdir}" -depth -type d -name ".svn" -exec rm -rf {} \;
52 # vim:set ts=2 sw=2 et: