diff options
Diffstat (limited to 'abs/core/man-pages')
-rw-r--r-- | abs/core/man-pages/PKGBUILD | 57 |
1 files changed, 32 insertions, 25 deletions
diff --git a/abs/core/man-pages/PKGBUILD b/abs/core/man-pages/PKGBUILD index b9df3f5..c4c6ab8 100644 --- a/abs/core/man-pages/PKGBUILD +++ b/abs/core/man-pages/PKGBUILD @@ -1,41 +1,48 @@ -# $Id: PKGBUILD 10358 2008-08-27 16:05:22Z andyrtr $ -# Maintainer: judd <jvinet@zeroflux.org> +# $Id: PKGBUILD 158918 2012-05-13 07:19:23Z andyrtr $ +# Maintainer: Andreas Radke <andyrtr@archlinux.org> + pkgname=man-pages -pkgver=3.08 +pkgver=3.41 _posixver=2003-a -pkgrel=10 +pkgrel=1 pkgdesc="Linux man pages" -arch=(i686 x86_64) +arch=('any') license=('GPL') -url="http://www.kernel.org/doc/man-pages/" +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.gz - http://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/$pkgname-posix-${_posixver}.tar.bz2) -md5sums=('951bc4cc585b59164557763431151569' +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) +md5sums=('7395d284fa1b9e112006d736865781b0' '7c78aff03c0a6767ba483d34f19e4b09') build() { - cd $startdir/src/$pkgname-$pkgver - make prefix=$startdir/pkg/usr install || return 1 + 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 - cd $startdir/src/$pkgname-posix-${_posixver} - make prefix=$startdir/pkg/usr install || return 1 + make prefix=${pkgdir}/usr install - cd $startdir/pkg/usr/share/man + cd ${pkgdir}/usr/share/man # these are included in coreutils || return 1 - rm -f man1/{chgrp,chmod,chown,cp,dir,dd}.1 || return 1 - rm -f man1/{df,dircolors,du,install,ln,ls}.1 || return 1 - rm -f man1/{mkdir,mkfifo,mknod,mv,rm,rmdir}.1 || return 1 - rm -f man1/{touch,vdir}.1 || return 1 + 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 || return 1 - rm -f man3/getspnam.3 || return 1 + rm -f man5/passwd.5 + rm -f man3/getspnam.3 # this is included in diffutils - rm -f man1/diff.1 || return 1 + rm -f man1/diff.1 # this is included in xf86-input-mouse - rm -f man4/mouse.4 || return 1 - # these are included in module-init-tools - rm -f man2/{create_module,delete_module,get_kernel_syms}.2 || return 1 - rm -f man2/{init_module,query_module}.2 || return 1 + rm -f man4/mouse.4 } |