jobcore/man-pages/PKGBUILD-arch

56 lines
1.9 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgname=man-pages
2022-10-13 05:06:33 +02:00
_commit=324e1d8289644e5159d43a04945df0841c45b966 # 2022-10-09 = 6.00 release
pkgver=6.00
2022-03-20 13:19:37 +01:00
_posixver=2017-a
pkgrel=1
pkgdesc="Linux man pages"
arch=('any')
license=('GPL' 'custom')
url="https://www.kernel.org/doc/man-pages/"
2022-10-13 05:06:33 +02:00
makedepends=('man2html' 'git')
# https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/
source=(#https://www.kernel.org/pub/linux/docs/man-pages/$pkgname-$pkgver.tar.{xz,sign}
"git+https://git.kernel.org/pub/scm/docs/man-pages/man-pages#commit=$_commit" # no tarball release for 6.00
2022-03-20 13:19:37 +01:00
https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/$pkgname-posix-${_posixver}.tar.{xz,sign})
# https://www.kernel.org/pub/linux/docs/man-pages/sha256sums.asc
2022-10-13 05:06:33 +02:00
#sha256sums=('614dae3efe7dfd480986763a2a2a8179215032a5a4526c0be5e899a25f096b8b'
# 'SKIP'
# 'ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3'
# 'SKIP')
sha256sums=('SKIP'
2022-03-20 13:19:37 +01:00
'ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3'
'SKIP')
validpgpkeys=('E522595B52EDA4E6BFCCCB5E856199113A35CE5E') # Michael Kerrisk (Linux man-pages maintainer) <mtk.manpages@gmail.com>
prepare() {
2022-10-13 05:06:33 +02:00
cd "${srcdir}"/$pkgname #-$pkgver
2022-03-20 13:19:37 +01:00
2022-10-13 05:06:33 +02:00
# sed -i "s|prefix := /usr/local|prefix := /usr|g" Makefile
2022-03-20 13:19:37 +01:00
# included in shadow
rm man5/passwd.5
rm man3/getspnam.3
# included in tzdata
rm man5/tzfile.5 man8/{tzselect,zdump,zic}.8
# included in libxcrypt
rm man3/crypt*.3
}
package() {
2022-10-13 05:06:33 +02:00
cd "${srcdir}"/$pkgname #-$pkgver
2022-03-20 13:19:37 +01:00
# install man-pages
2022-10-13 05:06:33 +02:00
make DESTDIR="${pkgdir}" prefix=/usr install
2022-03-20 13:19:37 +01:00
# install posix pages
pushd "${srcdir}"/$pkgname-posix-${_posixver%-*}
make DESTDIR="${pkgdir}" install
popd
# posix pages have a custom license
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 "${srcdir}"/$pkgname-posix-${_posixver%-*}/POSIX-COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/POSIX-COPYRIGHT"
}