From c4747d406a7b62573224d4a6c00609349cf86cf6 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 19 May 2008 19:53:05 +0000 Subject: Add a doinst.sh that updates the desktop database --- xmahjongg/build/xmahjongg.SlackBuild | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'xmahjongg') 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 -- cgit v1.2.3