summaryrefslogtreecommitdiffstats
path: root/xchm
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2008-05-11 16:02:47 +0000
committer Eric Hameleers <alien@slackware.com>2008-05-11 16:02:47 +0000
commit821d61153401c7ced6f23e28f71214fc66c2ea9b (patch)
tree435361742d0b7e7f4a245eeb34c5853b69da3df5 /xchm
parentc0dd6efd6e8d879af7cc45bdba5ac48632840f66 (diff)
downloadasb-821d61153401c7ced6f23e28f71214fc66c2ea9b.tar.gz
asb-821d61153401c7ced6f23e28f71214fc66c2ea9b.tar.xz
Update the desktop database after installation
Diffstat (limited to 'xchm')
-rwxr-xr-xxchm/build/xchm.SlackBuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/xchm/build/xchm.SlackBuild b/xchm/build/xchm.SlackBuild
index f952d69d..d5612d34 100755
--- a/xchm/build/xchm.SlackBuild
+++ b/xchm/build/xchm.SlackBuild
@@ -178,6 +178,15 @@ cp art/xchm-48.xpm $PKG/usr/share/pixmaps/
mkdir -p $PKG/usr/share/applications
cp $SRCDIR/xchm.desktop $PKG/usr/share/applications/
+# Create a post-install script:
+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