summaryrefslogtreecommitdiff
path: root/games/ho1
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-29 17:33:04 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-09-29 17:17:45 -0500
commiteb85baa6f2f91768651577d766ab44319c53bde6 (patch)
treef33bcba4b049d3a170e9470ba9d890f4e22edee8 /games/ho1
parent42226b242efb657a9bed8f271f8ae0d18b05ab36 (diff)
downloadslackbuilds-eb85baa6f2f91768651577d766ab44319c53bde6.tar.gz
games/ho1: Fixed (Handle desktop file)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/ho1')
-rw-r--r--games/ho1/doinst.sh3
-rw-r--r--games/ho1/ho1.SlackBuild5
2 files changed, 6 insertions, 2 deletions
diff --git a/games/ho1/doinst.sh b/games/ho1/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/games/ho1/doinst.sh
@@ -0,0 +1,3 @@
+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/games/ho1/ho1.SlackBuild b/games/ho1/ho1.SlackBuild
index 1586015948..a45466ff4e 100644
--- a/games/ho1/ho1.SlackBuild
+++ b/games/ho1/ho1.SlackBuild
@@ -8,7 +8,7 @@ PRGNAM=ho1
VERSION=${VERSION:-1.430}
VERSIONSRC=${VERSIONSRC:-1430}
EXTRAVERSION=${EXTRAVERSION:-r894}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
ARCH=noarch # Java
@@ -18,7 +18,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-set -e # Exit on most errors
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -42,6 +42,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.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}