1 # Contributor: Nikhilesh S <s.nikhilesh@gmail.com>
5 pkgdesc="A 3D action/puzzle game (currently still in development but playable)."
7 url="http://www.nikhilesh.info/grall2.html"
9 depends=('boost-libs' 'bullet' 'mygui' 'ogre' 'ogreal-svn'
11 makedepends=('git' 'premake3' 'boost')
15 _gitroot="git://github.com/nikki93/grall2.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
38 premake --target gnu --data_prefix "/usr/share/grall2/" --use_home || return 1
39 make CONFIG=Release || return 1
42 mkdir -p $pkgdir/usr/share
43 cp -r data $pkgdir/usr/share/grall2
44 mkdir -p $pkgdir/usr/bin
45 cp bin/release/GraLL2 $pkgdir/usr/bin/grall2