blob: 190e84787a933a60dc8e0de9a67b8180877330f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=man-pages
pkgver=6.06
pkgrel=0
pkgdesc="Linux man pages"
url="https://www.kernel.org/doc/man-pages/"
arch="noarch"
license="GPL-2.0-or-later"
source="https://cdn.kernel.org/pub/linux/docs/man-pages/man-pages-$pkgver.tar.xz
gnumakefile-shell.patch
no-install-T.patch
"
# just manpages
options="!check"
package() {
make LINK_PAGES=symlink SHELL=/bin/sh prefix="$pkgdir"/usr install
# skip things already zipped- find can iterate over new files made by -exec
find "$pkgdir"/usr/share/man -type f \
! -name "*.gz" \
-exec gzip -9 {} \+
# the symlink install links to non-gzipped
# installing with pre-gzipped form requires 'sponge'
# shellcheck disable=SC3045 # we aren't using dash
find "$pkgdir"/usr/share/man \( -type l -a ! -name "*.gz" \) -print0 | while IFS= read -r -d '' link; do
# append gz since gzipped
local target="$(readlink "$link")".gz
rm "$link"
ln -sfv "$target" "$link".gz
done
# provided by gnu-libiconv-doc
rm -f "$pkgdir"/usr/share/man/man1/iconv*
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*
}
sha512sums="
c50b5a47cff5172e46752b61af4dd9f54ee0be88ab69bcc5914bd8ce5ddfaf7358143bea9f69bd6a45f0420eb5eb4596c2200109b23fe98a5221dd01e4a8ea15 man-pages-6.06.tar.xz
1a11f3c6d15198e1eae7cc81c62fcecffce7a0a3690c1d00c312b749f4556b824dd8b87a96910da2936ecb94cefb52be8e957edaa38a201823629d66113c4b7d gnumakefile-shell.patch
ee68e51fc13f058410b95236ae7cc7217531af39e15f6ca6ff5595efa1a7d10e1ef17da1499114e5e03e77268bb9ba0fb6732bf53958c4de744c43baed435005 no-install-T.patch
"
|