Date: Wednesday, December 9, 2015 @ 19:05:30 Author: schuay Revision: 151284
nethack-3.6.0-1 first draft Modified: nethack/trunk/PKGBUILD ----------+ PKGBUILD | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-12-09 17:00:12 UTC (rev 151283) +++ PKGBUILD 2015-12-09 18:05:30 UTC (rev 151284) @@ -6,8 +6,8 @@ # Contributor : Nick Erdmann <[email protected]> pkgname=nethack -pkgver=3.4.3 -pkgrel=9 +pkgver=3.6.0 +pkgrel=1 pkgdesc='A single player dungeon exploration game' arch=('i686' 'x86_64') url="http://www.nethack.org/index.html" @@ -15,32 +15,28 @@ depends=('ncurses' 'gzip') install=nethack.install source=("http://downloads.sourceforge.net/$pkgname/$pkgname-${pkgver//.}-src.tgz") -md5sums=('21479c95990eefe7650df582426457f9') prepare() { cd $srcdir/$pkgname-$pkgver/ - sed -e '/define HACKDIR/ s|/usr/games/lib/nethackdir|/var/games/nethack/|' \ - -e "/^#define COMPRESS\s/ s|/usr/bin/compress|$(which gzip)|" \ - -e '/^#define COMPRESS_EXTENSION/ s|".Z"|".gz"|' \ - -e 's|^/\* \(#define DLB\) \*/|\1|' -i include/config.h - sed -e 's|^/\* \(#define LINUX\) \*/|\1|' \ -e 's|^/\* \(#define TIMED_DELAY\) \*/|\1|' -i include/unixconf.h - sed -e 's|^# \(WINTTYLIB = -lncurses\)|\1|' \ - -e 's|^WINTTYLIB = -ltermlib|#&|' -i sys/unix/Makefile.src - # we are setting up for setgid games, so modify all necessary permissions # to allow full access for groups - sed -e '/^GAMEDIR\s*=/ s|/games/.*$|/var/games/$(GAME)|' \ - -e '/^GAMEUID\s*=/ s|games|root|' \ - -e '/^GAMEGRP\s*=/ s|bin|games|' \ - -e '/^GAMEPERM\s*=/ s|04755|02755|' \ + sed -e '/^HACKDIR/ s|/games/lib/\$(GAME)dir|/var/games/nethack/|' \ + -e '/^SHELLDIR/ s|/games|/usr/bin|' \ + -e '/^VARDIRPERM/ s|0755|0775|' \ + -e '/^VARFILEPERM/ s|0600|0664|' \ + -e '/^GAMEPERM/ s|0755|02755|' \ + -e 's|\(DSYSCF_FILE=\)\\"[^"]*\\"|\1\\"/var/games/nethack/sysconf\\"|' \ + -e 's|\(DHACKDIR=\)\\"[^"]*\\"|\1\\"/var/games/nethack/\\"|' -i sys/unix/hints/linux + + sed -e 's|^#GAMEUID.*|GAMEUID = root|' \ + -e 's|^#GAMEGRP.*|GAMEGRP = games|' \ -e '/^FILEPERM\s*=/ s|0644|0664|' \ - -e '/^DIRPERM\s*=/ s|0755|0775|' \ - -e '/^SHELLDIR\s*=/ s|/games|/usr/bin|' -i sys/unix/Makefile.top + -e '/^DIRPERM\s*=/ s|0755|0775|' -i sys/unix/Makefile.top sed -e "/^MANDIR\s*=/s|/usr/man/man6|$pkgdir/usr/share/man/man6|" -i sys/unix/Makefile.doc @@ -47,9 +43,10 @@ } build(){ - cd $srcdir/$pkgname-$pkgver/ + cd $srcdir/$pkgname-$pkgver/sys/unix + sh setup.sh hints/linux - sh sys/unix/setup.sh + cd $srcdir/$pkgname-$pkgver make } @@ -67,9 +64,12 @@ mv $pkgdir/var/games/nethack/{nethack,recover} $pkgdir/usr/lib/nethack/ # FS#43414: /var/games should be owned by root:games. - chown root:games $pkgdir/var/games/ + chown -R root:games $pkgdir/var/games/ + chown root:games $pkgdir/usr/lib/nethack/nethack + #chmod 02755 $pkgdir/usr/lib/nethack/nethack install -Dm644 doc/Guidebook.txt $pkgdir/usr/share/doc/nethack/Guidebook.txt - install -Dm644 dat/license $pkgdir/usr/share/licenses/$pkgname/LICENSE } + +md5sums=('d42147b26e5fb4746fb72536ce145984')
