updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / tuxanci-git / PKGBUILD
blob67f9f23262c77433452d824e97e5c78bec2dff05
1 # Contributor: SergHeart
2 pkgname=tuxanci-git
3 pkgver=20110826
4 pkgrel=2
5 pkgdesc="Network/local game with penguins fighting in an arena."
6 url="http://www.tuxanci.org/"
7 arch=(i686 x86_64)
8 license="GPL"
9 makedepends=('cmake>=2.6.0' 'git')
10 depends=('sdl>=1.2.10' 'sdl_image>=1.2.6' 'sdl_ttf>=2.0.7' 'sdl_mixer>=1.2.7' 'zziplib' 'gettext')
12 _gitroot="git://repo.or.cz/tuxanci.git"
13 _gitname="tuxanci-0.21.0"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server..."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   cd "$_gitname"
30   mkdir build
31   cmake . -DCMAKE_INSTALL_PREFIX="/usr/" -DENABLE_DEBUG=1
32   make
33   make DESTDIR="$pkgdir" install 
36 #category: games