[arch-commits] Commit in man-pages/trunk (PKGBUILD)

Andreas Radke andyrtr at archlinux.org
Tue Jun 22 14:12:57 UTC 2021


    Date: Tuesday, June 22, 2021 @ 14:12:57
  Author: andyrtr
Revision: 418561

upgpkg: man-pages 5.12-1: upstream update 5.12; don't merge and rename posix man-pages into common man paths - install pposix pages into default manXp sections

Modified:
  man-pages/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++++++--------------------
 1 file changed, 21 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-22 08:37:58 UTC (rev 418560)
+++ PKGBUILD	2021-06-22 14:12:57 UTC (rev 418561)
@@ -1,7 +1,7 @@
 # Maintainer: Andreas Radke <andyrtr at archlinux.org>
 
 pkgname=man-pages
-pkgver=5.11
+pkgver=5.12
 _posixver=2017-a
 pkgrel=1
 pkgdesc="Linux man pages"
@@ -8,36 +8,21 @@
 arch=('any')
 license=('GPL' 'custom')
 url="https://www.kernel.org/doc/man-pages/"
+makedepends=('man2html')
 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=('3eda5dce5184599ec37dae3494cf964c550362e9a41fb724792da610bdb13caa'
+sha256sums=('7af5c960a05a7fac56813fe5bfa564a1c280e934363ae03911b67b0b8e23371e'
             'SKIP'
             'ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3'
             'SKIP')
 validpgpkeys=('E522595B52EDA4E6BFCCCB5E856199113A35CE5E') # Michael Kerrisk (Linux man-pages maintainer) <mtk.manpages at gmail.com>
 
-build() {
+prepare() {
   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
-}
+  sed -i "s|prefix := /usr/local|prefix := /usr|g" Makefile
 
-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
@@ -48,3 +33,19 @@
   # included in libxcrypt
   rm man3/crypt*.3
 }
+
+package() {
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  # install man-pages
+  make DESTDIR="${pkgdir}" install 
+
+  # install posix pages
+  pushd "${srcdir}"/$pkgname-posix-${_posixver%-*}
+  make DESTDIR="${pkgdir}" install 
+  popd
+  
+  # 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"
+}



More information about the arch-commits mailing list