[arch-commits] Commit in nethack/trunk (PKGBUILD nethack.tmpfiles)

David Runge dvzrv at gemini.archlinux.org
Thu Dec 30 12:25:41 UTC 2021


    Date: Thursday, December 30, 2021 @ 12:25:41
  Author: dvzrv
Revision: 1088190

upgpkg: nethack 3.6.6-2: Rebuild packages maintained by schuay

Added:
  nethack/trunk/nethack.tmpfiles
Modified:
  nethack/trunk/PKGBUILD

------------------+
 PKGBUILD         |   19 +++++++++++--------
 nethack.tmpfiles |    2 ++
 2 files changed, 13 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-30 12:22:37 UTC (rev 1088189)
+++ PKGBUILD	2021-12-30 12:25:41 UTC (rev 1088190)
@@ -6,14 +6,21 @@
 
 pkgname=nethack
 pkgver=3.6.6
-pkgrel=1
+pkgrel=2
 pkgdesc='A single player dungeon exploration game'
 arch=('x86_64')
 url="https://www.nethack.org/index.html"
 license=('custom')
-depends=('ncurses' 'gzip')
+depends=('filesystem' 'ncurses' 'gzip')
 install=nethack.install
-source=("https://www.nethack.org/download/${pkgver}/${pkgname}-${pkgver//.}-src.tgz")
+source=(
+  "https://www.nethack.org/download/${pkgver}/${pkgname}-${pkgver//.}-src.tgz"
+  "${pkgname}.tmpfiles"
+)
+sha512sums=('579fde93a37a1b5df637d5bac2601194beeb455c175fbe3ef89342122c8567bb8221ce60d8a6168e6b45c67ade7d7b09c86bf202c8cbe2d6294d276be3e53055'
+            '277503212c0b2f9344ef6493ecbff6d0aab6ecf148885db23bbb55d9eebdcd0f48f4abd2e42aa7aed8fd8d426e48f011912e2d3c1d7a85f407846f8a7be84ee9')
+b2sums=('7b4b12f3a711785c86208dab83f9de725c33470e056ee57e6d96c3a68f06c1d0d98343ed82eca669986361d0663ddbe56d9a74d9cb45b42bf005c2f323b3cd79'
+        'f61c7e9e5a1d1ab4e49447e2520c93abeca2b99dc21ce138f2b5fe2e371164bb5f98f21a50eead0dc1087a5a65b8298b9566d89b5b4a2762625932ccc411f378')
 
 _builddir="NetHack-NetHack-3.6.6_Released"
 
@@ -64,13 +71,9 @@
   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 -vDm 644 ../${pkgname}.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
 
   install -Dm644 doc/Guidebook.txt "$pkgdir"/usr/share/doc/nethack/Guidebook.txt
   install -Dm644 dat/license "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
-md5sums=('6c9a75f556d24c66801d74d8727a602e')

Added: nethack.tmpfiles
===================================================================
--- nethack.tmpfiles	                        (rev 0)
+++ nethack.tmpfiles	2021-12-30 12:25:41 UTC (rev 1088190)
@@ -0,0 +1,2 @@
+d /var/games 0775 root games
+z /usr/lib/nethack/nethack 2755 root games



More information about the arch-commits mailing list