From 88e1c72d99aeb8e41033c41d89e15563c86a6115 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 6 Jan 2023 04:27:28 -0500 Subject: audio/mp3val: Add doinst.sh. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- audio/mp3val/doinst.sh | 9 +++++++++ audio/mp3val/mp3val.SlackBuild | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 audio/mp3val/doinst.sh diff --git a/audio/mp3val/doinst.sh b/audio/mp3val/doinst.sh new file mode 100644 index 0000000000000..3e5691a052b5b --- /dev/null +++ b/audio/mp3val/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/audio/mp3val/mp3val.SlackBuild b/audio/mp3val/mp3val.SlackBuild index 84ffb150d518c..031fba6f35e28 100644 --- a/audio/mp3val/mp3val.SlackBuild +++ b/audio/mp3val/mp3val.SlackBuild @@ -6,9 +6,12 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230106 bkw: BUILD=4, add doinst.sh + # 20211121 bkw: BUILD=3 # - new-style icons. # - replace old icon, too small for modern displays. + # 20140921 bkw: bump BUILD to 2 # - took over maintenance # - add man page @@ -22,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mp3val VERSION=${VERSION:-0.1.8} -BUILD=${BUILD:-2} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -128,6 +131,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE -- cgit v1.2.3