summaryrefslogtreecommitdiffstats
path: root/abs/core/man/PKGBUILD
blob: 6cb2bf053d5cd0b0a24e350e928615a08aa2bde5 (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
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: judd <jvinet@zeroflux.org>
pkgname=man
pkgver=1.6f
pkgrel=11
pkgdesc="A utility for reading man pages"
arch=('i686' 'x86_64')
url="http://primates.ximian.com/~flucifredi/man/"
license=('GPL')
groups=('base')
depends=('groff' 'less' 'gzip' 'awk' 'coreutils' 'sh' 'diffutils')
backup=(etc/man.conf)
source=(http://primates.ximian.com/~flucifredi/man/man-$pkgver.tar.gz \
        whatis.cron.daily man-troff.patch)
md5sums=('67aaaa6df35215e812fd7d89472c44b6'
         'b86a5f2dd87c6be30421a8813547229d'
         '21541cb3073259f7fb9335675ca41b0e')
options=(!emptydirs)

build() {
  cd $startdir/src/$pkgname-$pkgver
  patch -Np1 -i ../man-troff.patch || return 1
  ./configure -confdir='/etc' -d +lang all -mandir=/usr/share/man
  make || return 1
  make PREFIX=$startdir/pkg install || return 1

  sed -i "s|-Tlatin1||g" $startdir/pkg/etc/man.conf

  #install whatis cron script
  install -D -m744 ../whatis.cron.daily $startdir/pkg/etc/cron.daily/whatis
}