diff options
author | Kyle Keen | 2015-08-09 16:11:39 -0400 |
---|---|---|
committer | Kyle Keen | 2015-08-09 16:11:39 -0400 |
commit | 297df84df557169bb07dc277d04992cdc9a72cc8 (patch) | |
tree | 22949a08a8cc4bff643c85b2550e96dcf93633e6 | |
download | aur-297df84df557169bb07dc277d04992cdc9a72cc8.tar.gz |
aur3 recovery
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1e224bc9cc89 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = hellband + pkgdesc = Dante's Inferno Angband. Uses a 'realm' based magic system like Zangband, but with many new features. + pkgver = 0.8.7 + pkgrel = 4 + url = http://hellband.net + arch = i686 + arch = x86_64 + license = GPL2 + license = custom + depends = ncurses + depends = libx11 + depends = libxaw + source = http://download.hellband.net/hb087src.zip + md5sums = dc39712c236bf749c4ad25eb0b58e914 + +pkgname = hellband + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..284f07a13386 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Contributor: SaThaRiel <sathariel74[at]gmail[dot]com> +# Contributor: Kyle Keen <keenerd@gmail.com> + +pkgname=hellband +pkgver=0.8.7 +pkgrel=4 +pkgdesc="Dante's Inferno Angband. Uses a 'realm' based magic system like Zangband, but with many new features." +arch=('i686' 'x86_64') +url="http://hellband.net" +license=('GPL2' 'custom') +depends=('ncurses' 'libx11' 'libxaw') +source=(http://download.hellband.net/hb087src.zip) +md5sums=('dc39712c236bf749c4ad25eb0b58e914') + +build() { + cd "$srcdir/hb087src/src" + cp makefile.org Makefile + mv config.h config.h.org + sed -e 's/\#\ define\ DEFAULT_PATH\ \"\.\/lib\/\"/\#\ define\ DEFAULT_PATH\ \"\/usr\/lib\/hellband\/\"/' config.h.org > config.h + make +} + +package() { + cd "$srcdir/hb087src/src" + install -d "$pkgdir/usr/lib/$pkgname" + cd .. + install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname" + cp -rp lib/* "$pkgdir/usr/lib/$pkgname/" + chown -R root:games "$pkgdir/usr/lib/$pkgname/" + chmod 775 "$pkgdir/usr/lib/$pkgname/apex" + chmod 775 "$pkgdir/usr/lib/$pkgname/save" + chmod 775 "$pkgdir/usr/lib/$pkgname/data" + find $pkgdir/usr/lib/$pkgname/ -name delete.me -exec rm {} \; + find $pkgdir/usr/lib/$pkgname/ -name 'Makefile*' -exec rm {} \; + install -Dm644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} |