updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / invertika-server-git / PKGBUILD
blob1054a27b31340a9f8d220071c5bf9782bc945c5c
1 pkgname=invertika-server-git
2 pkgver=20111226
3 pkgrel=1
4 pkgdesc="Server for Invertika (basically a version of manaserv)"
5 arch=('i686' 'x86_64')
6 url="http://invertika.org/"
7 license=('GPL2')
8 makedepends=('git' 'cmake')
9 depends=('libxml2' 'lua' 'physfs' 'sqlite3')
10 provides=('invertika-server')
12 _gitroot=git://github.com/Invertika/invertika.git
13 _gitname=invertika
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [[ -d "$_gitname" ]]; then
20     cd "$_gitname" && git pull origin
21     msg "The local files are updated."
22   else
23     git clone --depth=1 "$_gitroot" "$_gitname"
24   fi
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"
33   #
34   # BUILD
35   #
36   cd semistable/server
37   cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="/usr"
38   make
39   make DESTDIR="$pkgdir/" install