mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
|
|
# Contributor: Sergej Pupykin <sergej@aur.archlinux.org>
|
|
|
|
pkgname=man-db
|
|
pkgver=2.5.6
|
|
pkgrel=1
|
|
pkgdesc="A utility for reading man pages"
|
|
arch=('arm')
|
|
url="http://www.nongnu.org/man-db/"
|
|
license=('GPL' 'LGPL')
|
|
groups=('base')
|
|
depends=( 'bash' 'gdbm' 'zlib' 'groff')
|
|
optdepends=('less' 'gzip')
|
|
backup=(etc/man_db.conf)
|
|
conflicts=('man')
|
|
provides=('man')
|
|
replaces=('man')
|
|
install=${pkgname}.install
|
|
source=(http://launchpad.net/man-db/main/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz
|
|
convert-mans
|
|
man-db.cron.daily)
|
|
md5sums=('69585b19c5600a863f1a0d7b7f283975'
|
|
'2b7662a7d5b33fe91f9f3e034361a2f6'
|
|
'acdff891e224511cf26c92de77347db8')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
|
|
--with-db=gdbm --disable-setuid --enable-mandirs=GNU \
|
|
--with-sections="1 n l 8 3 0 2 5 4 9 6 7"
|
|
make || return 1
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
# part of groff pkg
|
|
rm -f ${pkgdir}/usr/bin/zsoelim
|
|
|
|
# script from LFS to convert manpages, see
|
|
# http://www.linuxfromscratch.org/lfs/view/6.4/chapter06/man-db.html
|
|
install -D -m755 ${srcdir}/convert-mans ${pkgdir}/usr/bin/convert-mans
|
|
|
|
#install whatis cron script
|
|
install -D -m744 ${srcdir}/man-db.cron.daily ${pkgdir}/etc/cron.daily/man-db
|
|
}
|