updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / bunnykill-git / PKGBUILD
blobd5ed443229efaaa430390c6171b1bde1b2c16496
1 # Contributor: Stefan Mark <mark@unserver.de>
3 pkgname=bunnykill-git
4 pkgver=20100814
5 pkgrel=1
6 pkgdesc="Kill all those cute fluffy bunnys! Spill their blood!!"
7 arch=('i686' 'x86_64')
8 url="http://e-x-a.org/?view=projects"
9 license=('GPL')
10 depends=('freealut' 'openal' 'freetype2' 'libvorbis' 'libpng' 'sdl' 'freeglut' 'scons')
11 makedepends=('scons' 'wget')
13 _gitroot="http://e-x-a.org/repos/bunnykill.git"
14 _gitname="bunnykill"
16 build() {
17   cd $srcdir
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   cd "$srcdir/$_gitname"
30   msg "GIT checkout done or server timeout"
32   msg "Patching..."
33   wget -N 0mark.unserver.de/filez/bunnykill_patch.1.diff
34   patch -p 1 -N < bunnykill_patch.1.diff || true
36   msg "Starting scons..."
37   scons
39   msg "And installing..."
40   mkdir -p $pkgdir/usr/share/bunnykill
41   cp -R data $pkgdir/usr/share/bunnykill
42   mkdir -p $pkgdir/usr/bin
43   cp bunnykill $pkgdir/usr/bin