summaryrefslogtreecommitdiffstats
path: root/libraries/zziplib/zziplib.SlackBuild
diff options
context:
space:
mode:
author B. Watson <urchlay@slackware.uk>2024-09-16 06:15:05 -0400
committer B. Watson <urchlay@slackware.uk>2024-09-16 06:15:05 -0400
commit5f820e934aaeec32b39142fe42c99f4cf747b900 (patch)
tree67571ff7adb5a2a398881457c3c467aa015968ee /libraries/zziplib/zziplib.SlackBuild
parent636ccaaa5f479aa59e59c72afe72d610e4d49ec0 (diff)
downloadslackbuilds-5f820e934aaeec32b39142fe42c99f4cf747b900.tar.gz
slackbuilds-5f820e934aaeec32b39142fe42c99f4cf747b900.tar.xz
libraries/zziplib: Simplify doinst.sh for mandb.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Diffstat (limited to '')
-rw-r--r--libraries/zziplib/zziplib.SlackBuild48
1 files changed, 3 insertions, 45 deletions
diff --git a/libraries/zziplib/zziplib.SlackBuild b/libraries/zziplib/zziplib.SlackBuild
index bcdd10b078..35a61b8e90 100644
--- a/libraries/zziplib/zziplib.SlackBuild
+++ b/libraries/zziplib/zziplib.SlackBuild
@@ -23,6 +23,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20240916 bkw: BUILD=3, simplify doinst.sh for mandb.
# 20240909 bkw: BUILD=2, generate doinst.sh for mandb.
# 20240823 bkw: update for v0.13.78.
# 20240808 bkw: update for v0.13.77.
@@ -33,18 +34,11 @@
# - switch to cmake.
# - make slack-desc more concise.
-# Note: 0.13.71 had the file "usr/lib64/pkgconfig/zzip-zlib-config.pc",
-# and 0.13.72 doesn't have it. Dependees are alephone and milkytracker [*].
-# These build correctly without this .pc file. If anyone has issues
-# with new builds because of this, please contact me.
-# [*] desmume had zziplib listed in REQUIRES, but it doesn't actually
-# use it (maybe it did at one time?).
-
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=zziplib
VERSION=${VERSION:-0.13.78}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -121,43 +115,7 @@ 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
cd $PKG
-
-# 20240909 bkw: This bit may get added to the SBo templates, so I'll
-# comment it in excruciating detail.
-#
-# The idea is that, immediately after installing the package, the
-# "man -k", "whatis", "apropos" commands should be able to find the
-# newly-installed man pages. This means that, at package install time,
-# they have to be added to the man database with the mandb command.
-#
-# We *could* run "mandb -c" in the doinst.sh, which would rebuild the
-# whole cache, but it takes a long time to do in Slackware 15.0 (several
-# minutes). Running "mandb" without the -c is much quicker, but
-# doesn't always pick up the new man pages (see next paragraph). So
-# instead, we have to add them one-by-one with "mandb -f" commands.
-#
-# In theory, we could run mandb with arguments in doinst.sh, or just
-# rely /etc/cron.daily/man-db to pick up the new man pages every
-# day... but in practice, it fails to pick up new ones, if the
-# timestamp on /usr/man/man1 (man3, etc) is older than the mandb
-# database file. This happens if we install or reinstall a package
-# that was built yesterday or earlier, if it contains any man pages.
-#
-# Note that I'm *not* proposing removing the man pages from the
-# database on package removal. It could be done with a simple "mandb"
-# command in doinst.sh (takes ~10 seconds to run with an SSD, longer
-# with a platter drive), but the daily cron job already handles this
-# correctly, regardless of the timestamps on the man page dirs. So
-# when you remove a package, you'll have to live with its man pages
-# being in the database for up to 24 more hours. This is no worse
-# than its files still being listed in the locate database, and nobody
-# complains about that.
-
-find usr/man -type f -a -name '*.gz' | \
- sed -e 's,^,chroot . /usr/bin/mandb -f "/,' \
- -e 's,$," \&>/dev/null,' \
- >> install/doinst.sh
-
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE