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

andyrtr at archlinux.org andyrtr at archlinux.org
Mon Apr 13 12:31:54 EDT 2009


    Date: Monday, April 13, 2009 @ 12:31:53
  Author: andyrtr
Revision: 35434

upgpkg: man-pages 3.20-2
    fix posix pages with links to another page, solves #14179

Modified:
  man-pages/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-04-13 15:59:55 UTC (rev 35433)
+++ PKGBUILD	2009-04-13 16:31:53 UTC (rev 35434)
@@ -4,7 +4,7 @@
 pkgname=man-pages
 pkgver=3.20
 _posixver=2003-a
-pkgrel=1
+pkgrel=2
 pkgdesc="Linux man pages"
 arch=(i686 x86_64)
 license=('GPL')
@@ -21,9 +21,10 @@
   
   # move the posix pages
   mkdir -p ${srcdir}/$pkgname-$pkgver/man0
-  mv -iv ${srcdir}/$pkgname-posix-${_posixver}/man0p/* ${srcdir}/$pkgname-$pkgver/man0/
-  mv -iv ${srcdir}/$pkgname-posix-${_posixver}/man1p/* ${srcdir}/$pkgname-$pkgver/man1/
-  mv -iv ${srcdir}/$pkgname-posix-${_posixver}/man3p/* ${srcdir}/$pkgname-$pkgver/man3/
+  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
 
   make prefix=${pkgdir}/usr install || return 1
 



More information about the arch-commits mailing list