[arch-commits] Commit in man-pages/repos (staging-any staging-any/PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Aug 9 17:37:29 UTC 2020


    Date: Sunday, August 9, 2020 @ 17:37:29
  Author: bpiotrowski
Revision: 393484

archrelease: copy trunk to staging-any

Added:
  man-pages/repos/staging-any/
  man-pages/repos/staging-any/PKGBUILD
    (from rev 393483, man-pages/trunk/PKGBUILD)

----------+
 PKGBUILD |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

Copied: man-pages/repos/staging-any/PKGBUILD (from rev 393483, man-pages/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-08-09 17:37:29 UTC (rev 393484)
@@ -0,0 +1,57 @@
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+
+pkgname=man-pages
+pkgver=5.07
+_posixver=2013-a
+pkgrel=2
+pkgdesc="Linux man pages"
+arch=('any')
+license=('GPL' 'custom')
+url="https://www.kernel.org/doc/man-pages/"
+source=(https://www.kernel.org/pub/linux/docs/man-pages/$pkgname-$pkgver.tar.{xz,sign}
+        https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/$pkgname-posix-${_posixver}.tar.{xz,sign})
+# https://www.kernel.org/pub/linux/docs/man-pages/sha256sums.asc
+sha256sums=('8dc7ffaaf118b7fbb0fb4f962f743d66260071a030b64b149d1ce463d8c1638d'
+            'SKIP'
+            '19633a5c75ff7deab35b1d2c3d5b7748e7bd4ef4ab598b647bb7e7f60b90a808'
+            'SKIP')
+validpgpkeys=('E522595B52EDA4E6BFCCCB5E856199113A35CE5E') # Michael Kerrisk (Linux man-pages maintainer) <mtk.manpages at gmail.com>
+
+build() {
+  cd "${srcdir}"/$pkgname-$pkgver
+  
+  # move the posix pages
+  mkdir -p "${srcdir}"/$pkgname-$pkgver/man0
+  for sect in 0 1 3; do
+    sed -i "/^\.so /s/man${sect}p/man$sect/" "${srcdir}/$pkgname-posix-${_posixver}/man${sect}p"/*
+    mv -iv "${srcdir}/$pkgname-posix-${_posixver}/man${sect}p"/* "${srcdir}/$pkgname-$pkgver/man$sect/"
+  done
+}
+
+package() {
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  make prefix="${pkgdir}"/usr install
+  
+  # posix pages have a custom license
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 "${srcdir}"/$pkgname-posix-${_posixver}/POSIX-COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/POSIX-COPYRIGHT"
+  
+  cd "${pkgdir}"/usr/share/man
+  # included in coreutils
+  rm -f man1/{chgrp,chmod,chown,cp,dir,dd}.1
+  rm -f man1/{df,dircolors,du,install,ln,ls}.1
+  rm -f man1/{mkdir,mkfifo,mknod,mv,rm,rmdir}.1
+  rm -f man1/{touch,vdir}.1
+  # included in shadow
+  rm -f man5/passwd.5
+  rm -f man3/getspnam.3
+  # included in diffutils
+  rm -f man1/diff.1
+  # included in tzdata
+  rm -f man5/tzfile.5 man8/{tzselect,zdump,zic}.8
+  # included in bpf
+  rm -f man7/bpf-helpers.7
+  # included in libxcrypt
+  rm -f man3/crypt*.3 man5/crypt.5
+}


More information about the arch-commits mailing list