1 # Contributor: SaThaRiel <sathariel74[at]gmail[dot]com>
5 pkgdesc="Don't let the name fool you: The Unnamed Angband has no shortage of distinct flavour that sets it apart from any other variant."
7 url="http://unangband.blogspot.com/"
9 depends=('ncurses' 'libx11')
10 source=(http://download2.berlios.de/unangband/unangband-064b-src.zip)
11 md5sums=('04a58c3e45a2f4474fb1ef6ff1716521')
14 cd $srcdir/unangband-064-src/src
15 cp Makefile.std Makefile
16 mv config.h config.h.org
17 sed -e 's/\#\ define\ DEFAULT_PATH\ \"\.\/lib\/\"/\#\ define\ DEFAULT_PATH\ \"\/usr\/lib\/unangband\/\"/' config.h.org > config.h
18 find . -type f -exec touch {} \;
20 install -d "$pkgdir/usr/bin/" || return 1
21 install -d "$pkgdir/usr/lib/$pkgname" || return 1
22 cp -p ../$pkgname "$pkgdir/usr/bin/" || return 1
23 cp -rp ../lib/* "$pkgdir/usr/lib/$pkgname/" || return 1
24 chown -R root:games "$pkgdir/usr/lib/$pkgname/"
25 chmod 775 "$pkgdir/usr/lib/$pkgname/apex"
26 chmod 775 "$pkgdir/usr/lib/$pkgname/save"
27 chmod 775 "$pkgdir/usr/lib/$pkgname/data"
28 find $pkgdir/usr/lib/$pkgname/ -name delete.me -exec rm {} \;
29 find $pkgdir/usr/lib/$pkgname/ -name 'Makefile*' -exec rm {} \;