updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / manaserv-git / PKGBUILD
blobb7d8d165a43f1a06adf12db609b2b80eee3624b4
1 # Maintainer: Karl Kochs <captainhaggy@googlemail.com>
3 pkgname=manaserv-git
4 pkgver=20100627
5 pkgrel=1
6 pkgdesc="The Mana project builds a complete 2D MMORPG platform. This includes a client, server and web component, as well as a library of free content that you can use under the terms of the GPL. While this project started in 2009, the Mana client, server and web components were formerly being developed as part of The Mana World since 2004. By separating server/client development from a single player community, we hope to achieve better cooperation with alternative Mana server based projects."
7 arch=('i686' 'x86_64')
8 url="http://manasource.org/"
9 license=('GPL')
10 depends=('sqlite' 'lua')
11 makedepends=('git')
12 optdepends=()
13 provides=('manaserv')
14 conflicts=()
15 source=()
16 md5sums=()
18 _gitroot=git://gitorious.org/mana/manaserv.git
19 _gitname=manaserv
21 build() {
22   cd ${srcdir}
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf ${srcdir}/$_gitname-build
36   cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
37   cd ${srcdir}/$_gitname-build
39    cd ${srcdir}/manaserv
40    autoreconf -i
41    ./configure --prefix=/usr  #--without-opengl
43    make || return 1
44    make DESTDIR=${pkgdir} install