updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / unangband / PKGBUILD
blob72e8ca62fd9958df7eba36417fc389962ade4868
1 # Contributor: SaThaRiel <sathariel74[at]gmail[dot]com>
2 pkgname=unangband
3 pkgver=0.6.4b
4 pkgrel=1
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."
6 arch=('i686' 'x86_64')
7 url="http://unangband.blogspot.com/"
8 license=('custom')
9 depends=('ncurses' 'libx11')
10 source=(http://download2.berlios.de/unangband/unangband-064b-src.zip)
11 md5sums=('04a58c3e45a2f4474fb1ef6ff1716521')
13 build() {
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 {} \;
19   make || return 1
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 {} \;