[arch-commits] Commit in nethack/repos/community-x86_64 (4 files)

Jakob Gruber schuay at archlinux.org
Wed Mar 18 17:26:41 UTC 2020


    Date: Wednesday, March 18, 2020 @ 17:26:41
  Author: schuay
Revision: 600597

archrelease: copy trunk to community-x86_64

Added:
  nethack/repos/community-x86_64/PKGBUILD
    (from rev 600596, nethack/trunk/PKGBUILD)
  nethack/repos/community-x86_64/nethack.install
    (from rev 600596, nethack/trunk/nethack.install)
Deleted:
  nethack/repos/community-x86_64/PKGBUILD
  nethack/repos/community-x86_64/nethack.install

-----------------+
 PKGBUILD        |  152 +++++++++++++++++++++++++++---------------------------
 nethack.install |   24 ++++----
 2 files changed, 88 insertions(+), 88 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-18 17:26:31 UTC (rev 600596)
+++ PKGBUILD	2020-03-18 17:26:41 UTC (rev 600597)
@@ -1,76 +0,0 @@
-# Maintainer : schuay <jakob.gruber at gmail.com>
-# Contributor : kevin <kevin at archlinux.org>
-# Contributor : Christian Schmidt <mucknert at gmx.net>
-# Contributor : Markus Meissner <markus at meissna.de>
-# Contributor : Nick Erdmann <erdmann at date.upb.de>
-
-pkgname=nethack
-pkgver=3.6.4
-pkgrel=1
-pkgdesc='A single player dungeon exploration game'
-arch=('x86_64')
-url="https://www.nethack.org/index.html"
-license=('custom')
-depends=('ncurses' 'gzip')
-install=nethack.install
-source=("https://www.nethack.org/download/${pkgver}/${pkgname}-${pkgver//.}-src.tgz")
-
-_builddir="NetHack-NetHack-3.6.4_Released"
-
-prepare() {
-  cd "$srcdir/$_builddir"
-
-  sed -e 's|^/\* \(#define LINUX\) \*/|\1|' \
-      -e 's|^/\* \(#define TIMED_DELAY\) \*/|\1|' -i include/unixconf.h
-
-  # we are setting up for setgid games, so modify all necessary permissions
-  # to allow full access for groups
-
-  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|' -i sys/unix/Makefile.top
-
-  sed -e "/^MANDIR\s*=/s|/usr/man/man6|$pkgdir/usr/share/man/man6|" -i sys/unix/Makefile.doc
-
-}
-
-build(){
-  cd "$srcdir/$_builddir/sys/unix"
-  sh setup.sh hints/linux
-
-  cd "$srcdir/$_builddir"
-  make
-}
-  
-package() {
-  cd "$srcdir/$_builddir"
-
-  install -dm755 $pkgdir/usr/share/{man/man6,doc/nethack}
-  install -dm775 $pkgdir/var/games/
-  make PREFIX=$pkgdir -j1 install manpages # Multi-threaded builds fail.
-  sed -e "s|HACKDIR=$pkgdir/|HACKDIR=/|" \
-      -e 's|HACK=$HACKDIR|HACK=/usr/lib/nethack|' \
-      -i $pkgdir/usr/bin/nethack
-
-  install -dm755 $pkgdir/usr/lib/nethack
-  mv $pkgdir/var/games/nethack/{nethack,recover} $pkgdir/usr/lib/nethack/
-
-  # FS#43414: /var/games should be owned by root: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=('b3a84ed39818489560c8c0e368490255')

Copied: nethack/repos/community-x86_64/PKGBUILD (from rev 600596, nethack/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-18 17:26:41 UTC (rev 600597)
@@ -0,0 +1,76 @@
+# Maintainer : schuay <jakob.gruber at gmail.com>
+# Contributor : kevin <kevin at archlinux.org>
+# Contributor : Christian Schmidt <mucknert at gmx.net>
+# Contributor : Markus Meissner <markus at meissna.de>
+# Contributor : Nick Erdmann <erdmann at date.upb.de>
+
+pkgname=nethack
+pkgver=3.6.6
+pkgrel=1
+pkgdesc='A single player dungeon exploration game'
+arch=('x86_64')
+url="https://www.nethack.org/index.html"
+license=('custom')
+depends=('ncurses' 'gzip')
+install=nethack.install
+source=("https://www.nethack.org/download/${pkgver}/${pkgname}-${pkgver//.}-src.tgz")
+
+_builddir="NetHack-NetHack-3.6.6_Released"
+
+prepare() {
+  cd "$srcdir/$_builddir"
+
+  sed -e 's|^/\* \(#define LINUX\) \*/|\1|' \
+      -e 's|^/\* \(#define TIMED_DELAY\) \*/|\1|' -i include/unixconf.h
+
+  # we are setting up for setgid games, so modify all necessary permissions
+  # to allow full access for groups
+
+  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|' -i sys/unix/Makefile.top
+
+  sed -e "/^MANDIR\s*=/s|/usr/man/man6|$pkgdir/usr/share/man/man6|" -i sys/unix/Makefile.doc
+
+}
+
+build(){
+  cd "$srcdir/$_builddir/sys/unix"
+  sh setup.sh hints/linux
+
+  cd "$srcdir/$_builddir"
+  make
+}
+  
+package() {
+  cd "$srcdir/$_builddir"
+
+  install -dm755 $pkgdir/usr/share/{man/man6,doc/nethack}
+  install -dm775 $pkgdir/var/games/
+  make PREFIX=$pkgdir -j1 install manpages # Multi-threaded builds fail.
+  sed -e "s|HACKDIR=$pkgdir/|HACKDIR=/|" \
+      -e 's|HACK=$HACKDIR|HACK=/usr/lib/nethack|' \
+      -i $pkgdir/usr/bin/nethack
+
+  install -dm755 $pkgdir/usr/lib/nethack
+  mv $pkgdir/var/games/nethack/{nethack,recover} $pkgdir/usr/lib/nethack/
+
+  # FS#43414: /var/games should be owned by root: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=('6c9a75f556d24c66801d74d8727a602e')

Deleted: nethack.install
===================================================================
--- nethack.install	2020-03-18 17:26:31 UTC (rev 600596)
+++ nethack.install	2020-03-18 17:26:41 UTC (rev 600597)
@@ -1,12 +0,0 @@
-pre_upgrade() {
-  if(test `vercmp '3.4.3-5' "$2"` -ge 0); then
-    mv /usr/share/nethack /tmp/nethack-backup
-  fi
-}
-
-post_upgrade() {
-  if(test `vercmp '3.4.3-5' "$2"` -ge 0); then
-    rm -rf /var/games/nethack
-    mv /tmp/nethack-backup /var/games/nethack
-  fi
-}

Copied: nethack/repos/community-x86_64/nethack.install (from rev 600596, nethack/trunk/nethack.install)
===================================================================
--- nethack.install	                        (rev 0)
+++ nethack.install	2020-03-18 17:26:41 UTC (rev 600597)
@@ -0,0 +1,12 @@
+pre_upgrade() {
+  if(test `vercmp '3.4.3-5' "$2"` -ge 0); then
+    mv /usr/share/nethack /tmp/nethack-backup
+  fi
+}
+
+post_upgrade() {
+  if(test `vercmp '3.4.3-5' "$2"` -ge 0); then
+    rm -rf /var/games/nethack
+    mv /tmp/nethack-backup /var/games/nethack
+  fi
+}



More information about the arch-commits mailing list