updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / mana-git / PKGBUILD
blob7ba1b7d5547358ac0f3b28f8c32676541cc1ea2b
1 # Maintainer: Brad Fanella <bradfanella@archlinux.us>
2 # Contributor: Karl Kochs <captainhaggy at i2pmail dot org>
4 pkgname=mana-git
5 pkgver=20110403
6 pkgrel=2
7 pkgdesc="Client for The Mana World (TMW)."
8 arch=('i686' 'x86_64')
9 url="http://manasource.org/"
10 license=('GPL')
11 depends=('curl' 'guichan' 'enet' 'libgl' 'libxml2' 'physfs' 'sdl_gfx' 'sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf')
12 makedepends=('git')
13 optdepends=()
14 provides=('mana')
15 conflicts=('mana')
16 source=()
17 md5sums=()
19 _gitroot=git://gitorious.org/mana/mana.git
20 _gitname=mana
22 build() {
23         cd ${srcdir}
24         msg "Connecting to GIT server...."
26         if [ -d $_gitname ] ; then
27                 cd $_gitname && git pull origin
28                 msg "The local files are updated."
29         else
30                 git clone $_gitroot $_gitname
31         fi
33         msg "GIT checkout done or server timeout"
34         msg "Starting make..."
36         rm -rf ${srcdir}/$_gitname-build
37         cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
38         
39         cd ${srcdir}/$_gitname-build
40         cmake .
41         make
44 package() {
45         cd ${srcdir}/$_gitname-build
46         make DESTDIR=${pkgdir} install