summaryrefslogtreecommitdiff
path: root/academic/gchemutils/doinst.sh
diff options
context:
space:
mode:
authorPetar Petrov <ppetrov@paju.oulu.fi>2011-11-28 23:30:42 -0600
committerNiels Horn <niels.horn@slackbuilds.org>2011-12-10 21:58:16 -0200
commitb211526cad2b48cd4d1d5cdd75ba1318ffe1e0b8 (patch)
tree494f2e1956cab713260698ba5b2e5dcd7442e120 /academic/gchemutils/doinst.sh
parente529dcb62eff1c6bd8cf48a1dc7a23f972ce6e4f (diff)
downloadslackbuilds-b211526cad2b48cd4d1d5cdd75ba1318ffe1e0b8.tar.gz
academic/gchemutils: Added (gnome-chemistry-utils)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic/gchemutils/doinst.sh')
-rw-r--r--academic/gchemutils/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/academic/gchemutils/doinst.sh b/academic/gchemutils/doinst.sh
new file mode 100644
index 0000000000..72031609d0
--- /dev/null
+++ b/academic/gchemutils/doinst.sh
@@ -0,0 +1,16 @@
+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
+
+chroot . /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/ 1> /dev/null 2> /dev/null
+