summaryrefslogtreecommitdiff
path: root/core/man-db
diff options
context:
space:
mode:
Diffstat (limited to 'core/man-db')
-rw-r--r--core/man-db/PKGBUILD15
-rw-r--r--core/man-db/man-db.install6
2 files changed, 15 insertions, 6 deletions
diff --git a/core/man-db/PKGBUILD b/core/man-db/PKGBUILD
index 5929d4985..d1256be0e 100644
--- a/core/man-db/PKGBUILD
+++ b/core/man-db/PKGBUILD
@@ -1,16 +1,16 @@
-# $Id: PKGBUILD 99794 2010-11-17 19:07:22Z andyrtr $
+# $Id: PKGBUILD 119687 2011-04-13 16:45:31Z andyrtr $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Sergej Pupykin <sergej@aur.archlinux.org>
pkgname=man-db
-pkgver=2.5.9
+pkgver=2.6.0.2
pkgrel=1
pkgdesc="A utility for reading man pages"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.nongnu.org/man-db/"
license=('GPL' 'LGPL')
groups=('base')
-depends=( 'bash' 'gdbm' 'zlib' 'groff')
+depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline')
optdepends=('less' 'gzip')
backup=('etc/man_db.conf'
'etc/cron.daily/man-db')
@@ -21,7 +21,7 @@ install=${pkgname}.install
source=(http://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.gz
#http://launchpad.net/man-db/main/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz
convert-mans man-db.cron.daily)
-md5sums=('9841394f5c5fe7e2dd2e0c5fb4766d0f'
+md5sums=('2b41c96efec032d2b74ccbf2e401f93e'
'2b7662a7d5b33fe91f9f3e034361a2f6'
'd30c39ae47560304471b5461719e0f03')
options=('!libtool')
@@ -35,9 +35,14 @@ build() {
make
}
+check() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make check
+}
+
package() {
cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install || return 1
+ make DESTDIR=${pkgdir} install
# part of groff pkg
rm -f ${pkgdir}/usr/bin/zsoelim
diff --git a/core/man-db/man-db.install b/core/man-db/man-db.install
index 6a0f36b67..f6f0f27a6 100644
--- a/core/man-db/man-db.install
+++ b/core/man-db/man-db.install
@@ -10,9 +10,13 @@ post_upgrade() {
echo "run \"userdel man\". please also"
echo "chown root:root /var/cache/man"
fi
+ # force database rebuild to get rid off badly imported pages
+ if [ "`vercmp $2 2.6.0.2`" -lt 0 ]; then
+ echo "(re)building database..."
+ mandb -c --quiet
+ fi
}
post_remove() {
rm -rf /var/cache/man
}
-