Date: Saturday, January 11, 2014 @ 17:19:45 Author: andyrtr Revision: 203481
archrelease: copy trunk to testing-any Added: man-pages/repos/testing-any/ man-pages/repos/testing-any/PKGBUILD (from rev 203480, man-pages/trunk/PKGBUILD) ----------+ PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) Copied: man-pages/repos/testing-any/PKGBUILD (from rev 203480, man-pages/trunk/PKGBUILD) =================================================================== --- testing-any/PKGBUILD (rev 0) +++ testing-any/PKGBUILD 2014-01-11 16:19:45 UTC (rev 203481) @@ -0,0 +1,48 @@ +# $Id$ +# Maintainer: Andreas Radke <andy...@archlinux.org> + +pkgname=man-pages +pkgver=3.56 +_posixver=2003-a +pkgrel=1 +pkgdesc="Linux man pages" +arch=('any') +license=('GPL') +url="http://man7.org/linux/man-pages/index.html" +groups=('base') +depends=() +source=(http://www.kernel.org/pub/linux/docs/man-pages/$pkgname-$pkgver.tar.xz + http://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/$pkgname-posix-${_posixver}.tar.bz2) +sha256sums=('a0cbdf5e90e21138d4e5cb0b932d51f34907e4e0d2d200c77b2bababc93828aa' + 'e355b1b7bbccd4cef6b4a38dccf090e4535e038c21a9985c19891f21173d49ea') + +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 + + cd ${pkgdir}/usr/share/man + # these are 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 + # this is included in shadow + rm -f man5/passwd.5 + rm -f man3/getspnam.3 + # this is included in diffutils + rm -f man1/diff.1 + # this is included in xf86-input-mouse + rm -f man4/mouse.4 +}