summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-29 21:15:21 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-09-30 20:01:04 -0500
commitff3a0951e42b95b29e7f9ce4db85960a916f0324 (patch)
tree6776206631d903ee202740b7c514d654325d6796
parentc6fd8a5b24bf9f4e4391f0a6a4d1db0886afb036 (diff)
downloadslackbuilds-ff3a0951e42b95b29e7f9ce4db85960a916f0324.tar.gz
misc/mdic: Fixed (Handle desktop file)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r--misc/mdic/doinst.sh4
-rw-r--r--misc/mdic/mdic.SlackBuild3
2 files changed, 6 insertions, 1 deletions
diff --git a/misc/mdic/doinst.sh b/misc/mdic/doinst.sh
new file mode 100644
index 0000000000..4e8ba7071d
--- /dev/null
+++ b/misc/mdic/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/misc/mdic/mdic.SlackBuild b/misc/mdic/mdic.SlackBuild
index d28283dd80..0a1ef56544 100644
--- a/misc/mdic/mdic.SlackBuild
+++ b/misc/mdic/mdic.SlackBuild
@@ -4,7 +4,7 @@
PRGNAM=mdic
VERSION=${VERSION:-0.8.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -71,6 +71,7 @@ cat $CWD/mdic.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/mdic.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:-tgz}