~yerinalexey/apkbuilds

6f5c739188787a88a23af930d7ad9917b4fb2af0 — Alexey Yerin 7 months ago 7d21ff7 main
Drop man-pages (provided by man-pages-posix)
1 files changed, 0 insertions(+), 48 deletions(-)

D local/man-pages/APKBUILD
D local/man-pages/APKBUILD => local/man-pages/APKBUILD +0 -48
@@ 1,48 0,0 @@
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Alexey Yerin <yyp@disroot.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=man-pages
pkgver=6.03
_posixver=2017
pkgrel=0
pkgdesc="Linux man pages"
url="https://www.kernel.org/doc/man-pages/"
arch="noarch"
license="GPL-2.0-or-later"
options="!strip !check"
makedepends="coreutils"
source="https://cdn.kernel.org/pub/linux/docs/man-pages/man-pages-$pkgver.tar.xz
	https://cdn.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-$_posixver-a.tar.xz
	"

package() {
	make prefix="$pkgdir"/usr install
	for sect in 0 1 3; do
		mkdir -p "$pkgdir"/usr/share/man/man${sect}p
		mv "$srcdir"/$pkgname-posix-$_posixver/man${sect}p/* \
			"$pkgdir"/usr/share/man/man${sect}p/
	done
	find "$pkgdir"/usr/share/man -name "*.[0-9]" -o -name "*.[0-9]p" \
		| xargs gzip -9

	# provided by libiconv-doc
	rm -f "$pkgdir"/usr/share/man/man3/iconv*

	# provided by mandoc
	rm -f "$pkgdir"/usr/share/man/man7/man* \
		"$pkgdir"/usr/share/man/man7/mdoc*

	# provided by tzdata
	rm -f "$pkgdir"/usr/share/man/man5/tzfile* \
		"$pkgdir"/usr/share/man/man8/tzselect* \
		"$pkgdir"/usr/share/man/man8/zic* \
		"$pkgdir"/usr/share/man/man8/zdump*

	# provided by libbsd
	rm -f "$pkgdir"/usr/share/man/man3/explicit_bzero*
}

sha512sums="
df9de826c8289869fb27928f14eb28040b0f5bdae18247dc2ea847e660dd8bff9eee5656f6b2b38330abc64b69cad7cd44681bdf49173dd49a53877eaf725dba  man-pages-6.03.tar.xz
dac6bd5bb3e1d5f8918bad3eb15e08eeb3e06ae160c04ccd5619bfb0c536139ac06faa62b6856656a1bb9a7496f3148e52a5227b83e4099be6e6b93230de211d  man-pages-posix-2017-a.tar.xz
"