updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / gunroar / PKGBUILD
blobac88b2adf8c6754a68033f97c9693b9db9aa2207
1 # Contributor: Nick B <Shirakawasuna at gmail _dot_ com>
2 pkgname=gunroar
3 pkgver=0.15
4 pkgrel=5
5 pkgdesc="An addictive game by Kenta Cho.  Navigate your abstract battleship and destroy enemies!"
6 arch=('i686' 'x86_64')
7 url="http://www.asahi-net.or.jp/~cs8k-cyu/windows/gr_e.html"
8 license=('custom')
9 depends=('libgl' 'mesa' 'sdl_mixer') 
10 makedepends=('gdc-bin' 'gcc')
11 source=(http://ftp.de.debian.org/debian/pool/main/g/gunroar/gunroar_0.15.dfsg1.orig.tar.gz
12                 http://ftp.de.debian.org/debian/pool/main/g/gunroar/gunroar_0.15.dfsg1-4.diff.gz)
14 build() {
15         cd $srcdir/gr
16         patch -p2 <../${pkgname}_0.15.dfsg1-4.diff
17         while read x; do
18                 patch -p1 <patches/"$x"
19         done <patches/series
21         sed -i s,"\/games",,g ./$pkgname-data.install ./src/abagames/util/sdl/texture.d \
22                 ./src/abagames/util/sdl/sound.d
23         sed -i s,"\/games","\/bin",g ./menu ./$pkgname.install ./$pkgname.desktop
25         make || return 1
26         mkdir -p $pkgdir/usr/share
27         install -D -m755 $srcdir/gr/gunroar $pkgdir/usr/bin/gunroar
29         cp -r $srcdir/gr $pkgdir/usr/share/gunroar
30         install -D -m644 $srcdir/gr/copyright           $pkgdir/usr/share/licenses/$pkgname/copyright
31         install -D -m644 $srcdir/gr/gunroar.desktop $pkgdir/usr/share/applications/$pkgname.desktop
32         install -D -m644 $srcdir/gr/gunroar.xpm         $pkgdir/usr/share/pixmaps/$pkgname.xpm
36 md5sums=('a2a5637f590fcc9369646fcb4a91bd1d'
37          '4428295df23fe2fb61ffb34adcaa9a0c')