updated on Tue Jan 10 16:09:17 UTC 2012
[aur-mirror.git] / titanion / PKGBUILD
blob0cd34db28eda71a5ba4de643945773e6a24e0cb7
1 #Contributor: Nick Bolten <Shirakawasuna@gmail.com>
2 pkgname=titanion
3 pkgver=0.3
4 pkgrel=8
5 pkgdesc="An addictive game by Kenta Cho.  Classic shoot-em-up with abstract feel"
6 arch=('i686' 'x86_64')
7 license=('custom')
8 url="http://www.asahi-net.or.jp/~cs8k-cyu/windows/ttn_e.html"
9 depends=('libgl' 'mesa' 'sdl_mixer')
10 makedepends=('gdc-bin')
11 source=(http://www.asahi-net.or.jp/~cs8k-cyu/windows/ttn0_3.zip
12         http://ftp.de.debian.org/debian/pool/main/t/titanion/titanion_0.3.dfsg1-2.diff.gz)
13 md5sums=('33044d2542f93753b5aa1611fbf22e69'
14          'f052a7792c77b00b89b2f96965134064')
15 build () {
17 #Thanks to the debian team!
18 cd $startdir/src/ttn
19 patch -p1 <../titanion_0.3*.diff
20 while read x;do patch -p1 <debian/patches/"$x";done <debian/patches/series
21 sed -i s,"\/games",,g ./src/abagames/util/sdl/texture.d ./src/abagames/util/sdl/sound.d \
22 ./src/abagames/ttn/screen.d ./debian/titanion-data.install
23 sed -i s,"\/games","\/bin",g ./debian/menu ./debian/titanion.desktop ./debian/titanion.install
24 make || return 1
25 mkdir -p $startdir/pkg/usr/share
26 install -D -m755 $startdir/src/ttn/titanion $startdir/pkg/usr/bin/titanion
27 cp -r $startdir/src/ttn $startdir/pkg/usr/share/titanion
28 install -D -m644 $startdir/src/ttn/debian/copyright $startdir/pkg/usr/share/licenses/titanion/copyright
29 install -D -m644 $startdir/src/ttn/debian/titanion.desktop $startdir/pkg/usr/share/applications/titanion.desktop
30 install -D -m644 $startdir/src/ttn/debian/titanion.xpm $startdir/pkg/usr/share/pixmaps/titanion.xpm