summaryrefslogtreecommitdiff
path: root/graphics/lcdtest
diff options
context:
space:
mode:
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 0000000000..3e5691a052
--- /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 9185196981..e9ed410dc5 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}