1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
7 pkgdesc="Linux man pages"
9 license=('GPL' 'custom')
10 url="https://www.kernel.org/doc/man-pages/"
11 makedepends=('man2html')
12 source=(https://www.kernel.org/pub/linux/docs/man-pages/$pkgname-$pkgver.tar.{xz,sign}
13 https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/$pkgname-posix-${_posixver}.tar.{xz,sign})
14 # https://www.kernel.org/pub/linux/docs/man-pages/sha256sums.asc
15 sha256sums=('614dae3efe7dfd480986763a2a2a8179215032a5a4526c0be5e899a25f096b8b'
17 'ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3'
19 validpgpkeys=('E522595B52EDA4E6BFCCCB5E856199113A35CE5E') # Michael Kerrisk (Linux man-pages maintainer) <mtk.manpages@gmail.com>
22 cd "${srcdir}"/$pkgname-$pkgver
24 sed -i "s|prefix := /usr/local|prefix := /usr|g" Makefile
30 rm man5/tzfile.5 man8/{tzselect,zdump,zic}.8
31 # included in libxcrypt
36 cd "${srcdir}"/$pkgname-$pkgver
39 make DESTDIR="${pkgdir}" install
42 pushd "${srcdir}"/$pkgname-posix-${_posixver%-*}
43 make DESTDIR="${pkgdir}" install
46 # posix pages have a custom license
47 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
48 install -m644 "${srcdir}"/$pkgname-posix-${_posixver%-*}/POSIX-COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/POSIX-COPYRIGHT"