1 # Contributor: SaThaRiel <sathariel74[at]gmail[dot]com>
5 pkgdesc="All of Middle Earth has been replaced with Dante's Inferno. Instead of battling down the Pits of Angband to fight Morgoth, you battle down the Circles of Hell to fight Lucifer. Hellband uses a 'realm' based magic system similar to the one used in Zangband, but also includes many new features of its own."
7 url="http://hellband.net"
8 license=('GPL2' 'custom')
9 depends=('ncurses' 'libx11' 'libxaw')
10 source=(http://download.hellband.net/hb087src.zip)
11 md5sums=('dc39712c236bf749c4ad25eb0b58e914')
14 cd $srcdir/hb087src/src
15 cp makefile.org Makefile
16 mv config.h config.h.org
17 sed -e 's/\#\ define\ DEFAULT_PATH\ \"\.\/lib\/\"/\#\ define\ DEFAULT_PATH\ \"\/usr\/lib\/hellband\/\"/' config.h.org > config.h
19 install -d "$pkgdir/usr/lib/$pkgname" || return 1
20 install -Dm755 ../$pkgname "$pkgdir/usr/bin/$pkgname" || return 1
21 cp -rp ../lib/* "$pkgdir/usr/lib/$pkgname/" || return 1
22 chown -R root:games "$pkgdir/usr/lib/$pkgname/"
23 chmod 775 "$pkgdir/usr/lib/$pkgname/apex"
24 chmod 775 "$pkgdir/usr/lib/$pkgname/save"
25 chmod 775 "$pkgdir/usr/lib/$pkgname/data"
26 find $pkgdir/usr/lib/$pkgname/ -name delete.me -exec rm {} \;
27 find $pkgdir/usr/lib/$pkgname/ -name 'Makefile*' -exec rm {} \;
28 install -Dm644 ../COPYING.txt $pkgdir/usr/share/licenses/$pkgname/COPYING