summaryrefslogtreecommitdiffstats
path: root/main/man/APKBUILD
blob: 3fd5f9bb3d2715e93c5350ec1ba60f7f54c6da82 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=man
pkgver=1.6g
pkgrel=0
pkgdesc="A utility for reading man pages"
url="http://primates.ximian.com/~flucifredi/man/"
arch="all"
license="GPL"
depends="groff gawk"
subpackages="$pkgname-doc"
source="ftp://metalab.unc.edu/pub/Linux/apps/doctools/man/man-$pkgver.tar.gz
	whatis.periodic.daily
	$pkgname-troff.patch"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
	local i
	for i in ../*.patch; do
		msg "Applying $i"
		patch -p1 -i $i || return 1
	done
}

build () {
	cd "$_builddir"
	# note: not autotools
	./configure -confdir=/etc +sgid +fhs +lang none
	sed -i "s/\\/usr\\/bin\\/awk/\\/usr\\/bin\\/gawk/" ./conf_script
	make -j1 || return 1
}

package() {
	cd "$_builddir"
	make PREFIX="$pkgdir" install || return 1

	sed -i -e "s|-Tlatin1||g" \
		-e "s|less -is|less|g" \
		"$pkgdir"/etc/man.conf
	install -D -m744 ../whatis.periodic.daily \
		"$pkgdir"/etc/periodic/daily/whatis
}
md5sums="ba154d5796928b841c9c69f0ae376660  man-1.6g.tar.gz
9cb02e4491777430a9ad3b503e87ec0d  whatis.periodic.daily
21541cb3073259f7fb9335675ca41b0e  man-troff.patch"
sha256sums="ccdcb8c3f4e0080923d7e818f0e4a202db26c46415eaef361387c20995b8959f  man-1.6g.tar.gz
e071642064466b7fab60163bb211b681153e11d77ff4fdcd63f8c7e0a0ec39dd  whatis.periodic.daily
2b2da96dc52d3aac2c909b0d0285dee88a3f46026f2420d487c42f4edeb1d21b  man-troff.patch"
sha512sums="c786fa2201aed92293e5590dc3ad5d550cf14e5059fa274ef7719af86ee4c892e747576495b6dc0a09286e73e2f0f0caf860216e0c8032d9ef13e5d26853048b  man-1.6g.tar.gz
3f19c7e81c51c3268f7f482b2cfa4f537d7d55d293a500eb3740ced28a4f53222fa6f97dce6749c8e2e8c884fed1043de6daf5e56df6fa52f7fc3709ade3297a  whatis.periodic.daily
c4441c641839590d678e08cce7f8009576c3df005e6da53d140d983b75f26c2932bb600d2cbc78d79dbd1967f33e3d8a59dfb67ad9b19d1ad7caf0ee886601be  man-troff.patch"