updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / fotbal / PKGBUILD
blob3b460b50be28b7f11f60b6a8dcc8b30abcbbf7cf
1 # Maintainer: jose <jose1711 [at] gmail (dot) com>
3 pkgname=fotbal
4 pkgver=1
5 pkgrel=4
6 pkgdesc="a simple 2d soccer game"
7 url=('http://hippo.nipax.cz/download.cz.php?id=41')
8 arch=('i686' 'x86_64')
9 license=("GPL-2")
10 depends=('allegro')
11 source=("http://hippo.nipax.cz/src/${pkgname}-src.tar.gz" "fotbal.desktop")
12 md5sums=('ed4146b05c3a074cd63c483bb685b1ed'
13          '3a8909900f3778dbed46a5008dd9eda9')
15 build() {
16 cd $srcdir/${pkgname}-src
17 # some patching needed here
18 sed -i -e 's/<fstream.h>/<fstream>/' -e 's/ifstream/std::ifstream/' football.cxx
19 make
22 package() {
23 cd $srcdir/${pkgname}-src
24 mkdir -p $pkgdir/usr/{share/fotbal,bin}
25 install -D -m755 football $pkgdir/usr/share/fotbal/football
26 install -D -m644 *.pcx *.txt fotbal.dat $pkgdir/usr/share/fotbal
27 ( echo "#!/bin/bash
28 cd /usr/share/fotbal
29 ./football" ) > $pkgdir/usr/bin/fotbal
30 chmod 755 $pkgdir/usr/bin/fotbal
31 install -D -m644 $srcdir/fotbal.desktop $pkgdir/usr/share/applications/fotbal.desktop