diff options
author | B. Watson <urchlay@slackware.uk> | 2024-08-12 15:07:37 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-08-17 18:14:15 +0700 |
commit | 28fe8403d177c05c55aafbcf7568fcf0ac0ce813 (patch) | |
tree | 5eca222b58d6fe4852d7e27fb90974d7bb862799 | |
parent | 783d127a0814c0f158dd807e2496a3af74eb7f32 (diff) |
development/dasm: Add doinst/douninst for man database.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | development/dasm/dasm.SlackBuild | 13 | ||||
-rw-r--r-- | development/dasm/doinst.sh | 4 | ||||
-rw-r--r-- | development/dasm/douninst.sh | 3 |
3 files changed, 15 insertions, 5 deletions
diff --git a/development/dasm/dasm.SlackBuild b/development/dasm/dasm.SlackBuild index 07cf98723edf..95bfd35321d2 100644 --- a/development/dasm/dasm.SlackBuild +++ b/development/dasm/dasm.SlackBuild @@ -6,11 +6,16 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20240812 bkw: BUILD=2 +# - add doinst.sh and douninst.sh, to handle the man -k database. +# this is a prototype/testcase for a future addition to the +# template. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=dasm VERSION=${VERSION:-2.20.14.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -33,16 +38,12 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" - LIBDIRSUFFIX="" fi set -e @@ -96,6 +97,8 @@ cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh +cat $CWD/douninst.sh > $PKG/install/douninst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/dasm/doinst.sh b/development/dasm/doinst.sh new file mode 100644 index 000000000000..4b4b89a7ddb3 --- /dev/null +++ b/development/dasm/doinst.sh @@ -0,0 +1,4 @@ +if [ -x usr/bin/mandb ]; then + usr/bin/mandb -f /usr/man/man1/dasm.1.gz &> /dev/null + usr/bin/mandb -f /usr/man/man1/ftohex.1.gz &> /dev/null +fi diff --git a/development/dasm/douninst.sh b/development/dasm/douninst.sh new file mode 100644 index 000000000000..396569ccb3e8 --- /dev/null +++ b/development/dasm/douninst.sh @@ -0,0 +1,3 @@ +if [ -x usr/bin/mandb ]; then + usr/bin/mandb &> /dev/null +fi |