From afedede1f5fac75cc148949e7eff2216a77a102a Mon Sep 17 00:00:00 2001 From: dsomero Date: Sat, 29 Sep 2012 18:46:51 -0400 Subject: graphics/lcdtest: Fixed (Handle desktop and icon files) Signed-off-by: dsomero --- graphics/lcdtest/doinst.sh | 9 +++++++++ graphics/lcdtest/lcdtest.SlackBuild | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 graphics/lcdtest/doinst.sh (limited to 'graphics') 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} -- cgit v1.2.3