From 3f6f553556dc1be8c732a41dad438f5d89dfdbac Mon Sep 17 00:00:00 2001 From: dsomero Date: Sat, 29 Sep 2012 15:25:17 -0400 Subject: development/jdk: Fixed (Handle desktop, mime, and icon files) Signed-off-by: dsomero --- development/jdk/jdk.SlackBuild | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'development/jdk/jdk.SlackBuild') diff --git a/development/jdk/jdk.SlackBuild b/development/jdk/jdk.SlackBuild index 02cb9fb0c4e1f..0df22fb5ce688 100644 --- a/development/jdk/jdk.SlackBuild +++ b/development/jdk/jdk.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=jdk VERSION=7u7 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} DVER=1.7.0_07 @@ -116,6 +116,20 @@ if [ -L libjsig.so ]; then fi # End cleanup. +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 + EOF # Install the desktop/mime files: -- cgit v1.2.3