summaryrefslogtreecommitdiff
path: root/extra/glhack/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-07 00:36:35 -0700
committerroot <root@rshg054.dnsready.net>2013-05-07 00:36:35 -0700
commitda0a0d88caa1bf934ebf314ef86e15928dbb027b (patch)
treeb7c57ac9667de10c72390e0d81654fffbe47c42d /extra/glhack/PKGBUILD
parentffb692bf2696e7ebedd19bcd55ba253e21cb732d (diff)
Tue May 7 00:36:35 PDT 2013
Diffstat (limited to 'extra/glhack/PKGBUILD')
-rw-r--r--extra/glhack/PKGBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/extra/glhack/PKGBUILD b/extra/glhack/PKGBUILD
index dbf68735b..d1242f2c6 100644
--- a/extra/glhack/PKGBUILD
+++ b/extra/glhack/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 148744 2012-02-05 11:48:58Z ibiru $
+# $Id: PKGBUILD 184385 2013-05-06 19:37:33Z foutrelis $
# Maintainer: Eric BĂ©langer <eric@archlinux.org>
pkgname=glhack
pkgver=1.2
-pkgrel=6
+pkgrel=7
pkgdesc="A port of Nethack, a single player dungeon exploration game in 2D"
arch=('i686' 'x86_64')
url="http://glhack.sourceforge.net/"
@@ -16,8 +16,8 @@ source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
sha1sums=('7dc46e6bd4a3c2ec10ab4d314acfbb30cefc6eae'
'4cf1a13e76cc1f1eb3708d42c74b85b7f321092d')
-build(){
- cd "${srcdir}/${pkgname}-${pkgver}"
+prepare() {
+ cd ${pkgname}-${pkgver}
patch -p0 -i ../glhack-libpng15.patch
sed -i 's|/usr/lib/games|/usr/share|' include/config.h
sed -i 's|/var/lib/games/glhack|/var/games/glhack|' include/unixconf.h
@@ -25,22 +25,25 @@ build(){
sed -i -e 's|VARDIR = /var/lib/games/glhack|VARDIR = $(DESTDIR)/var/games/glhack|' Makefile
sed -i -e 's|/usr/man/man6|$(DESTDIR)/usr/share/man/man6|' doc/Makefile
sed -i -e 's|GAMEDIR = $(PREFIX)/lib/games/$(GAME)|GAMEDIR = $(PREFIX)/share/$(GAME)|' Makefile
+}
+build(){
+ cd ${pkgname}-${pkgver}
make
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${pkgname}-${pkgver}
install -d "${pkgdir}"/usr/share/man/man{5,6}
make DESTDIR="$pkgdir" install
install -D -m644 dat/license "${pkgdir}/usr/share/licenses/${pkgname}/license"
# Renaming man pages which conflicts with nethack
- cd "${pkgdir}/usr/share/man/man6"
+ pushd "${pkgdir}/usr/share/man/man6"
for manpage in dgn_comp dlb lev_comp nethack recover; do
mv $manpage.6 $manpage-glhack.6
done
- cd "${srcdir}/${pkgname}-${pkgver}"
+ popd
mv "${pkgdir}/usr/share/glhack/glhack" "${pkgdir}/usr/bin/glhack"
mv "${pkgdir}/usr/share/glhack/recover_glhack" "${pkgdir}/usr/bin/recover_glhack"