updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / a7xpg / PKGBUILD
blobc44e8cfaf37f1e2aa9cc333b3e24414685d298f9
1 # Contributor: Nick B <Shirakawasuna at gmail _dot_com>
2 pkgname=a7xpg
3 pkgver=0.11
4 pkgrel=3
5 pkgdesc="An addictive game by Kenta Cho.  Collect gold with your ship and avoid the enemies!"
6 arch=('i686' 'x86_64')
7 url="http://www.asahi-net.or.jp/~cs8k-cyu/windows/a7xpg_e.html"
8 license=('custom')
9 depends=('libgl' 'sdl_mixer')
10 makedepends=('gdc-bin')
11 source=(http://www.asahi-net.or.jp/~cs8k-cyu/windows/${pkgname}0_11.zip
12         http://ftp.de.debian.org/debian/pool/main/a/$pkgname/${pkgname}_$pkgver.dfsg1-5.diff.gz)
14 build() {
15     cd $srcdir/$pkgname
16     patch -p1 <../${pkgname}_0.11.dfsg1-5.diff || return 1
17     while read x; do
18         patch -p1 <debian/patches/"$x" || return 1
19     done <debian/patches/series
21     sed -i 's,/games,,g' ./src/abagames/util/sdl/Sound.d ./src/abagames/util/sdl/Texture.d \
22         ./debian/$pkgname-data.install
23     sed -i 's,/games,/usr,g' ./debian/menu ./debian/$pkgname.desktop ./debian/$pkgname.install
25     make || return 1
26     mkdir -p $pkgdir/usr/share
27     install -D -m755 $srcdir/$pkgname/$pkgname $pkgdir/usr/bin/$pkgname
29     cp -r $srcdir/$pkgname $pkgdir/usr/share/$pkgname
30     install -D -m644 $srcdir/$pkgname/debian/copyright        $pkgdir/usr/share/licenses/$pkgname/copyright
31     install -D -m644 $srcdir/$pkgname/debian/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
32     install -D -m644 $srcdir/$pkgname/debian/$pkgname.xpm     $pkgdir/usr/share/pixmaps/$pkgname.xpm
35 md5sums=('3280918840913d629b13dc02bcbbfa7d'
36          '1c7df16996ac290e9a3658a9c54411a6')