From eeb98644519804453971c097fe9cf7a92848e577 Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Sat, 19 Jun 2010 17:46:33 +0200 Subject: multimedia/tovid: Added doinst.sh to update icon and desktop caches Signed-off-by: Heinz Wiesinger --- multimedia/tovid/doinst.sh | 10 ++++++++++ multimedia/tovid/tovid.SlackBuild | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 multimedia/tovid/doinst.sh diff --git a/multimedia/tovid/doinst.sh b/multimedia/tovid/doinst.sh new file mode 100644 index 0000000000..1f8ff67ded --- /dev/null +++ b/multimedia/tovid/doinst.sh @@ -0,0 +1,10 @@ +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/multimedia/tovid/tovid.SlackBuild b/multimedia/tovid/tovid.SlackBuild index 05246302e0..4d7363240b 100644 --- a/multimedia/tovid/tovid.SlackBuild +++ b/multimedia/tovid/tovid.SlackBuild @@ -17,7 +17,7 @@ PRGNAM=tovid VERSION=0.31 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: @@ -86,6 +86,7 @@ cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README SENSE \ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3