aboutsummaryrefslogtreecommitdiff
path: root/graphics/lcdtest
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-29 18:46:51 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-09-30 20:01:02 -0500
commitafedede1f5fac75cc148949e7eff2216a77a102a (patch)
tree9b71f8c120217825fdeb9d4d89438221bdc7e7f9 /graphics/lcdtest
parent773193500a22e290f7ec40a3d11b699bbf66c7e8 (diff)
graphics/lcdtest: Fixed (Handle desktop and icon files)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'graphics/lcdtest')
-rw-r--r--graphics/lcdtest/doinst.sh9
-rw-r--r--graphics/lcdtest/lcdtest.SlackBuild5
2 files changed, 12 insertions, 2 deletions
diff --git a/graphics/lcdtest/doinst.sh b/graphics/lcdtest/doinst.sh
new file mode 100644
index 000000000000..3e5691a052b5
--- /dev/null
+++ b/graphics/lcdtest/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/graphics/lcdtest/lcdtest.SlackBuild b/graphics/lcdtest/lcdtest.SlackBuild
index 918519698188..e9ed410dc59d 100644
--- a/graphics/lcdtest/lcdtest.SlackBuild
+++ b/graphics/lcdtest/lcdtest.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=lcdtest
VERSION=${VERSION:-1.18}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -22,7 +22,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
@@ -54,6 +54,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}