db-move: moved gnome-clocks from [testing] to [extra] (x86_64)
[arch-packages.git] / man-pages / trunk / PKGBUILD
blob5dbb322d67bc00c27068fccff54bf171f99a9c02
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
3 pkgname=man-pages
4 pkgver=6.04
5 _posixver=2017-a
6 pkgrel=1
7 pkgdesc="Linux man pages"
8 arch=('any')
9 license=('GPL' 'custom')
10 url="https://www.kernel.org/doc/man-pages/"
11 makedepends=('man2html' 'git')
12 # https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/
13 source=(https://www.kernel.org/pub/linux/docs/man-pages/$pkgname-$pkgver.tar.{xz,sign}
14         https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/$pkgname-posix-${_posixver}.tar.{xz,sign})
15 # https://www.kernel.org/pub/linux/docs/man-pages/sha256sums.asc
16 sha256sums=('c2c0b9329955df81af45ee80ebc84c47291f95df5157db1fab988199f9371af1'
17             'SKIP'
18             'ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3'
19             'SKIP')
20 validpgpkeys=('E522595B52EDA4E6BFCCCB5E856199113A35CE5E') # Michael Kerrisk (Linux man-pages maintainer) <mtk.manpages@gmail.com>
21 # + for posix tarball
22 validpgpkeys+=('A9348594CE31283A826FBDD8D57633D441E25BB5') # Alejandro Colomar Andres <alx.manpages@gmail.com>
24 prepare() {
25   cd "${srcdir}"/$pkgname-$pkgver
27   # included in shadow
28   rm man5/passwd.5
29   rm man3/getspnam.3
30   # included in tzdata
31   rm man5/tzfile.5 man8/{tzselect,zdump,zic}.8
32   # included in libxcrypt
33   rm man3/crypt*.3
36 package() {
37   cd "${srcdir}"/$pkgname-$pkgver
39   # install man-pages
40   make DESTDIR="${pkgdir}" prefix=/usr install 
42   # install posix pages
43   pushd "${srcdir}"/$pkgname-posix-${_posixver%-*}
44   make DESTDIR="${pkgdir}" install 
45   popd
46   
47   # posix pages have a custom license
48   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
49   install -m644 "${srcdir}"/$pkgname-posix-${_posixver%-*}/POSIX-COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/POSIX-COPYRIGHT"