updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / invertika-svn / PKGBUILD
blob843cea5effd0b05ada1a8a4fa0e630edd2ee139b
1 pkgname=invertika-svn
2 pkgver=2291
3 pkgrel=1
4 pkgdesc="A german MMORPG based on the Manasource plattform"
5 arch=('any')
6 url="http://invertika.org/"
7 license=('GPL2')
8 makedepends=('subversion' 'cmake')
9 depends=('guichan' 'curl' 'physfs' 'libpng' 'libpthread-stubs' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf' 'sdl_gfx' 'libxml2' 'zlib' 'libtool' 'enet-old' 'gettext')
10 provides=('invertika')
11 conflicts=('mana')
12 _svntrunk="http://invertika.googlecode.com/svn/tags/1879-semistable-client-server/client"
13 _svnmod=invertika-client
15 build() {
16   cd "$srcdir"
18   if [ -d $_svnmod/.svn ]; then
19     (cd $_svnmod && svn up -r $pkgver)
20   else
21     svn co "$_svntrunk" --config-dir ./ -r $pkgver $_svnmod
22   fi
24   msg "SVN checkout done or server timeout"
25   msg "Starting make..."
27   rm -rf "$srcdir/$_svnmod-build"
28   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
29   cd "$srcdir/$_svnmod-build"
31   #
32   # BUILD
33   #
34   cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="/usr"
35   make
36   make DESTDIR="$pkgdir/" install