summaryrefslogtreecommitdiff
path: root/user/man-db
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman@gmail.com>2017-08-07 17:44:44 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-07 23:57:29 +0000
commitf236c14044f8225fa1d574d46a04a12ca75039d7 (patch)
treeff61eaf0babcd378fa138a3c751b44d56926b9eb /user/man-db
parentd44caf81b064bf1cfcb4cc4d26378a80375bbb77 (diff)
downloadpackages-f236c14044f8225fa1d574d46a04a12ca75039d7.tar.gz
packages-f236c14044f8225fa1d574d46a04a12ca75039d7.tar.bz2
packages-f236c14044f8225fa1d574d46a04a12ca75039d7.tar.xz
packages-f236c14044f8225fa1d574d46a04a12ca75039d7.zip
user/man-db: Add trigger for automatic mandb generation.
Diffstat (limited to 'user/man-db')
-rw-r--r--user/man-db/APKBUILD9
-rw-r--r--user/man-db/man-db.trigger3
2 files changed, 9 insertions, 3 deletions
diff --git a/user/man-db/APKBUILD b/user/man-db/APKBUILD
index 192088aaf..466e5be58 100644
--- a/user/man-db/APKBUILD
+++ b/user/man-db/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=man-db
pkgver=2.7.6.1
-pkgrel=0
+pkgrel=1
pkgdesc="The man command and related utilities for examining on-line help files"
url="http://www.nongnu.org/man-db/"
arch="all"
@@ -10,7 +10,9 @@ license="GPL-2+"
depends="groff less"
makedepends="db-dev gettext-dev libpipeline-dev zlib-dev"
subpackages="$pkgname-lang $pkgname-doc"
-source="http://download.savannah.nongnu.org/releases/man-db/man-db-$pkgver.tar.xz"
+source="http://download.savannah.nongnu.org/releases/man-db/man-db-$pkgver.tar.xz
+ man-db.trigger"
+triggers="man-db.trigger=/usr/share/man"
build() {
cd "$builddir"
@@ -35,4 +37,5 @@ package() {
rm -r "${pkgdir}"/usr/lib/tmpfiles.d # systemd
}
-sha512sums="623c5e7f8b7c289908b2c926f8777293b8d39aeceef0d2509d701a8b0bfa81408650f655c8608318221786c751a79ee91124b07993de5298cd7fa6d8bb737301 man-db-2.7.6.1.tar.xz"
+sha512sums="623c5e7f8b7c289908b2c926f8777293b8d39aeceef0d2509d701a8b0bfa81408650f655c8608318221786c751a79ee91124b07993de5298cd7fa6d8bb737301 man-db-2.7.6.1.tar.xz
+0d2ab0b42888178ffb83c5dd5eaac8005f047de56af55eb3046291318fd8ed8c4999a4ea0148367ea07c0a0490eb8b9bc726a03b46533ef51bec6a5747719b64 man-db.trigger"
diff --git a/user/man-db/man-db.trigger b/user/man-db/man-db.trigger
new file mode 100644
index 000000000..fb76aa38c
--- /dev/null
+++ b/user/man-db/man-db.trigger
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/mandb /usr/share/man