OCaml 4.14.0 rebuild
[arch-packages.git] / man-pages / trunk / PKGBUILD
blob0fdad5d4053ce82c1d322d1b48737b52245eb8c9
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
3 pkgname=man-pages
4 pkgver=5.13
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')
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'
16             'SKIP'
17             'ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3'
18             'SKIP')
19 validpgpkeys=('E522595B52EDA4E6BFCCCB5E856199113A35CE5E') # Michael Kerrisk (Linux man-pages maintainer) <mtk.manpages@gmail.com>
21 prepare() {
22   cd "${srcdir}"/$pkgname-$pkgver
23   
24   sed -i "s|prefix := /usr/local|prefix := /usr|g" Makefile
26   # included in shadow
27   rm man5/passwd.5
28   rm man3/getspnam.3
29   # included in tzdata
30   rm man5/tzfile.5 man8/{tzselect,zdump,zic}.8
31   # included in libxcrypt
32   rm man3/crypt*.3
35 package() {
36   cd "${srcdir}"/$pkgname-$pkgver
38   # install man-pages
39   make DESTDIR="${pkgdir}" install 
41   # install posix pages
42   pushd "${srcdir}"/$pkgname-posix-${_posixver%-*}
43   make DESTDIR="${pkgdir}" install 
44   popd
45   
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"