From eb85baa6f2f91768651577d766ab44319c53bde6 Mon Sep 17 00:00:00 2001 From: dsomero Date: Sat, 29 Sep 2012 17:33:04 -0400 Subject: games/ho1: Fixed (Handle desktop file) Signed-off-by: dsomero --- games/ho1/doinst.sh | 3 +++ games/ho1/ho1.SlackBuild | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 games/ho1/doinst.sh diff --git a/games/ho1/doinst.sh b/games/ho1/doinst.sh new file mode 100644 index 000000000000..5fb28930db0b --- /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 1586015948e7..a45466ff4ec8 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} -- cgit v1.2.3