88 lines
3.2 KiB
Bash
88 lines
3.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=man-pages
|
|
#_commit=324e1d8289644e5159d43a04945df0841c45b966 # 2022-10-09 = 6.00 release
|
|
pkgver=6.9.1
|
|
_posixver=2017-a
|
|
pkgrel=01
|
|
pkgdesc="Linux man pages"
|
|
url="https://www.kernel.org/doc/man-pages/"
|
|
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
|
|
https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/$pkgname-posix-${_posixver}.tar.{xz,sign}
|
|
sha256sums::https://www.kernel.org/pub/linux/docs/man-pages/sha256sums.asc)
|
|
|
|
prepare() {
|
|
cd "${srcdir}"/$pkgname-$pkgver
|
|
|
|
# sed -i "s|prefix := /usr/local|prefix := /usr|g" Makefile
|
|
|
|
# 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
|
|
# nscd is dead
|
|
rm man5/nscd.conf.5 man8/nscd.8
|
|
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}"/$pkgname-$pkgver
|
|
|
|
# install man-pages
|
|
make DESTDIR="${pkgdir}" prefix=/usr install
|
|
|
|
# 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-$pkgver/LICENSES/* "${pkgdir}/usr/share/licenses/${pkgname}"/
|
|
install -m644 "${srcdir}"/$pkgname-posix-${_posixver%-*}/POSIX-COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/POSIX-COPYRIGHT"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(BSD-2-Clause
|
|
BSD-3-Clause
|
|
BSD-4.3TAHOE
|
|
BSD-4-Clause-UC
|
|
GPL-1.0-or-later
|
|
GPL-2.0-only
|
|
GPL-2.0-or-later
|
|
LGPL-3.0-or-later
|
|
LGPL-3.0-linking-exception
|
|
LicenseRef-Public-Domain
|
|
LicenseRef-UltraPermissive
|
|
Linux-man-pages-1-para
|
|
Linux-man-pages-copyleft
|
|
Linux-man-pages-copyleft-2-para
|
|
Linux-man-pages-copyleft-var
|
|
MIT
|
|
Spencer-94)
|
|
|
|
validpgpkeys=(E522595B52EDA4E6BFCCCB5E856199113A35CE5E # Michael Kerrisk (Linux man-pages maintainer) <mtk.manpages@gmail.com>
|
|
A9348594CE31283A826FBDD8D57633D441E25BB5) # Alejandro Colomar Andres <alx.manpages@gmail.com>
|
|
|
|
sha256sums=(e23cbac29f110ba571f0da8523e79d373691466ed7f2a31301721817d34530bd # man-pages-6.9.1.tar.xz
|
|
ce68c01bb1ae92a7de3c77b4dcbe57aad3dab5e84820499f354896f1df153bd5 # man-pages-6.9.1.tar.sign
|
|
ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3 # man-pages-posix-2017-a.tar.xz
|
|
a754077b66853702059a7ae8ff520fadf42ab7484da6df991207343e8b7c5eff # man-pages-posix-2017-a.tar.sign
|
|
c8c10b178309a2c4eab478b4f13e335ab4458de731e4f3170a527fc8c0341129) # sha256sums
|
|
|
|
## 364e864cab82a68eb5e4811042c03c933160a03f2e0770113f2b54f4ecc055a3 man-pages-6.9.1-01-x86_64.pkg.tar.lz
|
|
|