summaryrefslogtreecommitdiffstats
path: root/xmahjongg/build/xmahjongg.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'xmahjongg/build/xmahjongg.SlackBuild')
-rwxr-xr-xxmahjongg/build/xmahjongg.SlackBuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/xmahjongg/build/xmahjongg.SlackBuild b/xmahjongg/build/xmahjongg.SlackBuild
index 96ad6a35..c085d98a 100755
--- a/xmahjongg/build/xmahjongg.SlackBuild
+++ b/xmahjongg/build/xmahjongg.SlackBuild
@@ -196,6 +196,16 @@ cat <<-EOT > $PKG/usr/share/applications/xmahjongg.desktop
Categories=Game;BoardGame;
EOT
+# Update the desktop database post-install:
+mkdir -p $PKG/install
+cat <<-EOT > $PKG/install/doinst.sh
+ # Update the desktop database:
+ if [ -x usr/bin/update-desktop-database ]; then
+ chroot . /usr/bin/update-desktop-database /usr/share/applications > /dev/null
+ 2>&1
+ fi
+ EOT
+
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true