1 # Contributor: SaThaRiel <sathariel74[at]gmail[dot]com>
5 pkgdesc="Steamband is a Steampunk / Victorian / Pulp variant of Angband, A roguelike ASCII dungeon exploration simulation game."
7 url="http://angband.oook.cz/steamband/steamband.html"
9 depends=('ncurses' 'libx11')
10 source=(http://angband.oook.cz/steamband/Steamband-041f-SRC.zip)
11 md5sums=('14fd9bc6f218bb655e0dc247793f7a87')
14 cd $srcdir/Steamband\ $pkgver\ SRC/src
15 sed -e '175,180d' Makefile.std > Makefile
17 mv config.h config.h.org
18 echo "Patching config.h"
19 sed -e 's/\#\ define\ DEFAULT_PATH\ \"\.\/lib\/\"/\#\ define\ DEFAULT_PATH\ \"\/usr\/lib\/steamband\/\"/' config.h.org > config.h
21 export CFLAGS='-Wall -O2 -pipe -fno-strength-reduce -D"USE_X11" -D"USE_GCU"'
22 export LIBS='-lX11 -lcurses'
26 install -d "$pkgdir/usr/bin/" || return 1
27 install -d "$pkgdir/usr/lib/$pkgname" || return 1
28 cp -p ../$pkgname "$pkgdir/usr/bin/" || return 1
29 cp -rp ../lib/* "$pkgdir/usr/lib/$pkgname/" || return 1
30 chown -R root:games "$pkgdir/usr/lib/$pkgname/"
31 chmod 775 "$pkgdir/usr/lib/$pkgname/apex"
32 chmod 775 "$pkgdir/usr/lib/$pkgname/save"
33 chmod 775 "$pkgdir/usr/lib/$pkgname/data"
34 echo "Cleaning up lib-dir"
35 find "$pkgdir/usr/lib/$pkgname/" -name delete.me -exec rm {} \;
36 find "$pkgdir/usr/lib/$pkgname/" -name 'Makefile*' -exec rm {} \;