updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / fistfulofbeef / PKGBUILD
blob13a4c614a6931e74ad28b1bea020658c7f0b0d7c
1 # Maintainer: archtux <antonio.arias99999 at gmail.com>
3 pkgname=fistfulofbeef
4 pkgver=20111101
5 pkgrel=1
6 pkgdesc="FoB is a game where you swing bulls to defend yourself against incoming hordes of...other bulls!"
7 url="http://www.moddb.com/games/fistful-of-beef"
8 arch=('any')
9 license=('MIT')
10 depends=('love')
11 makedepends=('git')
13 _gitroot=https://github.com/LOVE-Party/Love-LD18.git
14 _gitname=Love-LD18
16 build() {
17   cd $srcdir
19   msg "Connecting to GIT server...."
21   if [ -d $srcdir/$_gitname ] ; then
22     cd $_gitname && git pull --rebase
23   else
24     git clone $_gitroot
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30    cd Love-LD18
32    # Build
33    sh makelove.sh
35    # Executable
36    install -Dm755 fistfulofbeef.love $pkgdir/usr/share/games/$pkgname/$pkgname.love
38    # Launcher
39    install -Dm755 $startdir/$pkgname $pkgdir/usr/bin/$pkgname
41    # License
42    install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
44    # Desktop icon
45    cd gfx/
46    install -Dm644 comboicon.png $pkgdir/usr/share/pixmaps/$pkgname.png
47    install -Dm644 $startdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop