diff options
Diffstat (limited to 'extra/glhack/PKGBUILD')
-rw-r--r-- | extra/glhack/PKGBUILD | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/extra/glhack/PKGBUILD b/extra/glhack/PKGBUILD index 27ef966e4..5c073c3b0 100644 --- a/extra/glhack/PKGBUILD +++ b/extra/glhack/PKGBUILD @@ -1,15 +1,15 @@ -# $Id: PKGBUILD 63897 2010-01-19 01:01:11Z eric $ -# Maintainer: Eric Belanger <eric@archlinux.org> -# Contributor : Markus Meissner <markus@meissna.de> +# $Id: PKGBUILD 137858 2011-09-12 05:04:42Z eric $ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> pkgname=glhack pkgver=1.2 -pkgrel=4 +pkgrel=5 pkgdesc="A port of Nethack, a single player dungeon exploration game in 2D" arch=('i686' 'x86_64') url="http://glhack.sourceforge.net/" license=('custom') -depends=('sdl' 'libpng' 'mesa') +depends=('sdl' 'libpng' 'libgl') +makedepends=('mesa') options=('!makeflags') install=glhack.install source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz) @@ -19,16 +19,20 @@ sha1sums=('7dc46e6bd4a3c2ec10ab4d314acfbb30cefc6eae') build(){ cd "${srcdir}/${pkgname}-${pkgver}" - sed -i 's|/usr/lib/games|/usr/share|' include/config.h || return 1 - sed -i 's|/var/lib/games/glhack|/var/games/glhack|' include/unixconf.h || return 1 - sed -i -e 's|PREFIX = /usr|PREFIX = $(DESTDIR)/usr|' Makefile || return 1 - sed -i -e 's|VARDIR = /var/lib/games/glhack|VARDIR = $(DESTDIR)/var/games/glhack|' Makefile || return 1 - sed -i -e 's|/usr/man/man6|$(DESTDIR)/usr/share/man/man6|' doc/Makefile || return 1 - sed -i -e 's|GAMEDIR = $(PREFIX)/lib/games/$(GAME)|GAMEDIR = $(PREFIX)/share/$(GAME)|' Makefile || return 1 + sed -i 's|/usr/lib/games|/usr/share|' include/config.h + sed -i 's|/var/lib/games/glhack|/var/games/glhack|' include/unixconf.h + sed -i -e 's|PREFIX = /usr|PREFIX = $(DESTDIR)/usr|' Makefile + 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 - make || return 1 + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" install -d "${pkgdir}"/usr/share/man/man{5,6} - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install install -D -m644 dat/license "${pkgdir}/usr/share/licenses/${pkgname}/license" # Renaming man pages which conflicts with nethack |