1 # Contributor: SaThaRiel <sathariel_dontbugme_74[at]gmail[d0t]com>
6 pkgdesc="FayAngband is an angband variant mainly based on EyAngband"
8 url="http://www.mikkolehtinen.net/projects.html"
11 source=(http://www.mikkolehtinen.net/ohjelmat/fayangband-101-src.zip)
13 md5sums=('51f8c06aea2f2f2c66c9ad5f0d595ca2')
16 cd "${srcdir}/fayangband101/src"
18 install -d "${pkgdir}/usr/lib" || return 1
19 cp config.h config.h.bak || return 1
20 sed -e 's@# define DEFAULT_PATH "./lib/"@# define DEFAULT_PATH "/usr/lib/fayangband/"@' config.h.bak > config.h || return 1
22 make -f Makefile.std || return 1
23 install -D -m755 "angband" "${pkgdir}/usr/bin/$pkgname" || return 1
24 cp -R "${srcdir}/fayangband101/lib" "${pkgdir}/usr/lib/$pkgname" || return 1
25 chmod -R 775 "${pkgdir}/usr/lib/$pkgname" || return 1
26 chown -R root:users "${pkgdir}/usr/lib/$pkgname" || return 1
28 find "${pkgdir}" -iname delete.me -delete || return 1