diff options
author | dsomero <xgizzmo@slackbuilds.org> | 2012-09-29 18:46:51 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-30 20:01:02 -0500 |
commit | afedede1f5fac75cc148949e7eff2216a77a102a (patch) | |
tree | 9b71f8c120217825fdeb9d4d89438221bdc7e7f9 | |
parent | 773193500a22e290f7ec40a3d11b699bbf66c7e8 (diff) | |
download | slackbuilds-afedede1f5fac75cc148949e7eff2216a77a102a.tar.gz |
graphics/lcdtest: Fixed (Handle desktop and icon files)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r-- | graphics/lcdtest/doinst.sh | 9 | ||||
-rw-r--r-- | graphics/lcdtest/lcdtest.SlackBuild | 5 |
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} |