APKBUILD 2.33 KB
Newer Older
1
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
Natanael Copa's avatar
Natanael Copa committed
2 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=man-pages
4
pkgver=4.05
5
_posixver=2013-a
6
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
7 8
pkgdesc="Linux man pages"
url="http://www.kernel.org/doc/man-pages/"
9
arch="noarch"
Natanael Copa's avatar
Natanael Copa committed
10
license="GPL"
11
depends=""
Natanael Copa's avatar
Natanael Copa committed
12 13
makedepends=""
options="!strip"
14
source="http://www.kernel.org/pub/linux/docs/$pkgname/$pkgname-$pkgver.tar.xz
15
	http://www.kernel.org/pub/linux/docs/$pkgname/$pkgname-posix/$pkgname-posix-${_posixver}.tar.xz
16 17
	mktemp-invalid-argument.patch"

18
_builddir="$srcdir"/$pkgname-$pkgver
19
build() {
20 21 22
	make -C "$srcdir"/$pkgname-$pkgver gz
	make -C "$srcdir"/$pkgname-posix-${_posixver} gz

Natanael Copa's avatar
Natanael Copa committed
23 24 25 26 27 28 29 30
	cd "$srcdir"/$pkgname-$pkgver
	mkdir -p "$srcdir"/$pkgname-$pkgver/man0
	for sect in 0 1 3; do
		sed -i "/^\.so /s/man${sect}p/man$sect/" \
			"$srcdir"/$pkgname-posix-${_posixver}/man${sect}p/*
		mv "$srcdir"/$pkgname-posix-${_posixver}/man${sect}p/* \
			"$srcdir"/$pkgname-$pkgver/man$sect/
	done
31 32 33 34
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
35
	make prefix="$pkgdir"/usr install || return 1
36

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

40 41 42
	# provided by mdocml
	rm -f "$pkgdir"/usr/share/man/man7/man* \
		"$pkgdir"/usr/share/man/man7/mdoc*
43 44 45 46 47 48

	# 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*
Natanael Copa's avatar
Natanael Copa committed
49
}
50

51
md5sums="9c32c8487d753f5894f6fba425b12add  man-pages-4.05.tar.xz
52
825fde78e6fddd02426ecdd50e2cbe0d  man-pages-posix-2013-a.tar.xz
53
a1c5e5e809d366b0a94b311f3baaf2b5  mktemp-invalid-argument.patch"
54
sha256sums="460051b94c2a0a4d158276e5d3f68e7114cb5782a050d878645e33b81f56a60d  man-pages-4.05.tar.xz
55
19633a5c75ff7deab35b1d2c3d5b7748e7bd4ef4ab598b647bb7e7f60b90a808  man-pages-posix-2013-a.tar.xz
56
363aebb15bdc8326a0996d8f8af3d67bfe933282251d5f921ccebc91b92b3075  mktemp-invalid-argument.patch"
57
sha512sums="37464776bc9b4373e7d4caa6539db99b5c4811c3b157c6d67bac2cbe3930c3d218d4cee45ef578b8fb5b8cea8fba1e1980d1064883938b490a50fdd7708c1101  man-pages-4.05.tar.xz
58
e6ec8eb57269fadf368aeaac31b5a98b9c71723d4d5cc189f9c4642d6e865c88e44f77481dccbdb72e31526488eb531f624d455016361687a834ccfcac19fa14  man-pages-posix-2013-a.tar.xz
59
8e0b8302419bbf38013c887b3b2c92f6cc6566a8fa39378d00657d4ed27704e2de47d1efabeabe6219629335e69cb469bf09f886fd85a381cfc11c515c86821d  mktemp-invalid-argument.patch"