From 340e72b73b8eb157262432a2605c70527d448042 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sun, 18 Aug 2024 15:44:35 +0700 Subject: [PATCH] graphics/veles: Add doinst.sh. Signed-off-by: Willy Sudiarto Raharjo --- graphics/veles/doinst.sh | 4 ++++ graphics/veles/veles.SlackBuild | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 graphics/veles/doinst.sh diff --git a/graphics/veles/doinst.sh b/graphics/veles/doinst.sh new file mode 100644 index 0000000000..4e8ba7071d --- /dev/null +++ b/graphics/veles/doinst.sh @@ -0,0 +1,4 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + diff --git a/graphics/veles/veles.SlackBuild b/graphics/veles/veles.SlackBuild index bcaf3c427a..b1ae739760 100644 --- a/graphics/veles/veles.SlackBuild +++ b/graphics/veles/veles.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=veles VERSION=${VERSION:-2018.05.0.TIF} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -108,6 +105,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