aboutsummaryrefslogtreecommitdiffstats
path: root/extra/man/APKBUILD
blob: 1363e3cbc3fad500a8055b1779328ef80f80b78a (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=man
pkgver=1.6f
pkgrel=0
pkgdesc="A utility for reading man pages"
url="http://primates.ximian.com/~flucifredi/man/"
license="GPL"
depends="groff"
subpackages="$pkgname-doc"
source="http://primates.ximian.com/~flucifredi/$pkgname/$pkgname-$pkgver.tar.gz
	whatis.periodic.daily
	$pkgname-troff.patch"

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

	./configure -confdir=/etc +sgid +fhs +lang none
	
	make || return 1
	make PREFIX="$pkgdir" install || return 1

	sed -i "s|-Tlatin1||g" "$pkgdir"/etc/man.conf
	install -D -m744 ../whatis.periodic.daily \
		"$pkgdir"/etc/periodic/daily/whatis
}
md5sums="67aaaa6df35215e812fd7d89472c44b6  man-1.6f.tar.gz
9cb02e4491777430a9ad3b503e87ec0d  whatis.periodic.daily
21541cb3073259f7fb9335675ca41b0e  man-troff.patch"