updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / tmw-git / PKGBUILD
blob1d81b27a2fc6f541fac8991760257fd00a638d43
1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
3 pkgname=tmw-git
4 pkgver=20090718
5 pkgrel=1
6 pkgdesc="GIT version of The Mana World (TMW) - a serious effort to create an innovative free and open source MMORPG."
7 arch=('i686' 'x86_64')
8 url="http://themanaworld.org/"
9 license=('GPL')
10 depends=('curl' 'guichan' 'enet' 'libgl' 'libxml2' 'physfs' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf')
11 makedepends=('git')
12 optdepends=('tmwmusic: game music')
13 provides=('tmw')
14 conflicts=('tmw' 'tmw-svn')
15 source=()
16 md5sums=()
18 _gitroot=git://gitorious.org/tmw/mainline.git
19 _gitname=tmw
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}/tmw
40    autoreconf -i
41    ./configure --prefix=/usr  #--without-opengl
43    make || return 1
44    make DESTDIR=${pkgdir} install