summaryrefslogtreecommitdiffstats
path: root/xmahjongg
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2008-05-19 19:53:05 +0000
committer Eric Hameleers <alien@slackware.com>2008-05-19 19:53:05 +0000
commitc4747d406a7b62573224d4a6c00609349cf86cf6 (patch)
tree630356735f745f135e6bc07fbbde61b337ff3511 /xmahjongg
parent77ebbd67c2f1101634b0a4e8dc6c2772d11366e1 (diff)
downloadasb-c4747d406a7b62573224d4a6c00609349cf86cf6.tar.gz
asb-c4747d406a7b62573224d4a6c00609349cf86cf6.tar.xz
Add a doinst.sh that updates the desktop database
Diffstat (limited to 'xmahjongg')
-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