mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-11 19:02:42 +01:00
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=man
|
|
pkgver=1.6f
|
|
pkgrel=5
|
|
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="http://primates.ximian.com/~flucifredi/$pkgname/$pkgname-$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 || 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="67aaaa6df35215e812fd7d89472c44b6 man-1.6f.tar.gz
|
|
9cb02e4491777430a9ad3b503e87ec0d whatis.periodic.daily
|
|
21541cb3073259f7fb9335675ca41b0e man-troff.patch"
|