From 0453bb6d8c8780865b58e8f6e6ea4f958bf7509f Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Sun, 4 Jun 2017 07:46:37 -0700 Subject: office/basket: Added doinst.sh. Signed-off-by: Benjamin Trigona-Harany --- office/basket/basket.SlackBuild | 1 + office/basket/doinst.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 office/basket/doinst.sh diff --git a/office/basket/basket.SlackBuild b/office/basket/basket.SlackBuild index a606820cb6..6043e4c9c3 100644 --- a/office/basket/basket.SlackBuild +++ b/office/basket/basket.SlackBuild @@ -92,6 +92,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} diff --git a/office/basket/doinst.sh b/office/basket/doinst.sh new file mode 100644 index 0000000000..19ad22754d --- /dev/null +++ b/office/basket/doinst.sh @@ -0,0 +1,13 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications +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 -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi -- cgit v1.2.3