From daeb511d4824677d081f838714a39186db09c98d Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sun, 23 Feb 2014 08:03:21 +0700 Subject: [PATCH] mate-icon-theme: Update icon cache on doinst.sh Signed-off-by: Willy Sudiarto Raharjo --- base/mate-icon-theme/doinst.sh | 13 +++++++++++++ base/mate-icon-theme/mate-icon-theme.SlackBuild | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 base/mate-icon-theme/doinst.sh diff --git a/base/mate-icon-theme/doinst.sh b/base/mate-icon-theme/doinst.sh new file mode 100644 index 0000000..9424ce4 --- /dev/null +++ b/base/mate-icon-theme/doinst.sh @@ -0,0 +1,13 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/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/base/mate-icon-theme/mate-icon-theme.SlackBuild b/base/mate-icon-theme/mate-icon-theme.SlackBuild index c7ab742..acde2b6 100644 --- a/base/mate-icon-theme/mate-icon-theme.SlackBuild +++ b/base/mate-icon-theme/mate-icon-theme.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=mate-icon-theme VERSION=${VERSION:-1.7.90} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_msb} ARCH=noarch @@ -110,6 +110,7 @@ chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION 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:-txz}