diff options
-rw-r--r-- | development/OpenJDK11/OpenJDK11.SlackBuild | 8 | ||||
-rw-r--r-- | development/OpenJDK11/doinst.sh | 6 | ||||
-rw-r--r-- | development/OpenJDK11/java.png | bin | 0 -> 1821 bytes |
3 files changed, 11 insertions, 3 deletions
diff --git a/development/OpenJDK11/OpenJDK11.SlackBuild b/development/OpenJDK11/OpenJDK11.SlackBuild index e5f2dfc9215b..26a66b8d7338 100644 --- a/development/OpenJDK11/OpenJDK11.SlackBuild +++ b/development/OpenJDK11/OpenJDK11.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=OpenJDK11 VERSION=${VERSION:-11.0.16.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -162,6 +162,8 @@ for s in 16 24 32 48; do install -vDm644 src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png \ $PKG/usr/share/icons/hicolor/${s}x${s}/apps/java.png done +# the 24x24 icon is missized, so we fix it here: +cp $CWD/java.png $PKG/usr/share/icons/hicolor/24x24/apps find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -202,7 +204,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/usr/share/applications cat > $PKG/usr/share/applications/openjdk-java.desktop << EOF [Desktop Entry] -Name=OpenJDK Java ${VERSION} Runtime +Name=OpenJDK ${VERSION} Runtime Comment=OpenJDK Java ${VERSION} Runtime Exec=/usr/lib${LIBDIRSUFFIX}/java/bin/java -jar Terminal=false @@ -221,7 +223,7 @@ Exec=/usr/lib${LIBDIRSUFFIX}/java/bin/jconsole Terminal=false Type=Application Icon=java -Categories=Application;System; +Categories=System; EOF # Create /etc/profile.d scripts: diff --git a/development/OpenJDK11/doinst.sh b/development/OpenJDK11/doinst.sh index ee4d704d0429..39ec34e32e85 100644 --- a/development/OpenJDK11/doinst.sh +++ b/development/OpenJDK11/doinst.sh @@ -7,3 +7,9 @@ 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 + diff --git a/development/OpenJDK11/java.png b/development/OpenJDK11/java.png Binary files differnew file mode 100644 index 000000000000..767f5aa1a368 --- /dev/null +++ b/development/OpenJDK11/java.png |