1 pkgname=invertika-server-git
4 pkgdesc="Server for Invertika (basically a version of manaserv)"
6 url="http://invertika.org/"
8 makedepends=('git' 'cmake')
9 depends=('libxml2' 'lua' 'physfs' 'sqlite3')
10 provides=('invertika-server')
12 _gitroot=git://github.com/Invertika/invertika.git
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 --depth=1 "$_gitroot" "$_gitname"
26 msg "GIT checkout done or server timeout"
27 msg "Starting build..."
29 rm -rf "$srcdir/$_gitname-build"
30 cp -R "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31 cd "$srcdir/$_gitname-build"
37 cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="/usr"
39 make DESTDIR="$pkgdir/" install