updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / arxfatalis-git / PKGBUILD
blobe7b29da9b320c5230558c64fd9e8d7ddac8b0ea7
1 # Maintainer: Ramana Kumar <first.last@gmail.com>
2 pkgname=arxfatalis-git
3 pkgver=20110917
4 pkgrel=1
5 pkgdesc="first-person role-playing game (no data files)"
6 arch=(any)
7 url="http://arx.parpg.net"
8 license=('GPL')
9 groups=()
10 depends=('boost-libs' 'zlib' 'devil' 'freetype2' 'openal')
11 makedepends=('git' 'cmake' 'boost')
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=()
19 noextract=()
20 md5sums=() #generate with 'makepkg -g'
22 _gitroot='https://github.com/lubosz/ArxFatalis.git'
23 _gitname='ArxFatalis'
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [[ -d "$_gitname" ]]; then
30     cd "$_gitname" && git pull origin
31     msg "The local files are updated."
32   else
33     git clone "$_gitroot" "$_gitname"
34   fi
36   msg "GIT checkout done or server timeout"
37   msg "Starting build..."
39   rm -rf "$srcdir/$_gitname-build"
40   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41   cd "$srcdir/$_gitname-build"
43   #
44   # BUILD HERE
45   #
46   cmake . -DARX_USE_UNITYBUILD=1
47   make -j`getconf _NPROCESSORS_ONLN`
50 package() {
51   cd "$srcdir/$_gitname-build"
52   mkdir -p "$pkgdir/opt/arxfatalis/"
53   cp -p bin/arx "$pkgdir/opt/arxfatalis/"
56 # vim:set ts=2 sw=2 et: