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

Andreas Radke andyrtr at archlinux.org
Wed Nov 11 18:08:35 UTC 2020


    Date: Wednesday, November 11, 2020 @ 18:08:35
  Author: andyrtr
Revision: 400422

archrelease: copy trunk to testing-any

Added:
  man-pages/repos/testing-any/
  man-pages/repos/testing-any/PKGBUILD
    (from rev 400421, man-pages/trunk/PKGBUILD)

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

Copied: man-pages/repos/testing-any/PKGBUILD (from rev 400421, man-pages/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2020-11-11 18:08:35 UTC (rev 400422)
@@ -0,0 +1,50 @@
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+
+pkgname=man-pages
+pkgver=5.09
+_posixver=2017-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=('df1a3476bf63336f5e0335c4c2a992359b301999e9dfe44fb2cac7466aec0bf2'
+            'SKIP'
+            'ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3'
+            '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 shadow
+  rm man5/passwd.5
+  rm man3/getspnam.3
+  # included in tzdata
+  rm man5/tzfile.5 man8/{tzselect,zdump,zic}.8
+  # included in bpf
+  rm man7/bpf-helpers.7
+  # included in libxcrypt
+  rm man3/crypt*.3
+}



More information about the arch-commits mailing list