summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2022-09-27 03:32:23 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-01 09:01:13 +0700
commit3e1c2a76e4bc95fae2160e7d4b68a76e9955062b (patch)
tree494b7e902fc129943b11fa57aac84af46ac815c0 /development
parent7c5c0df2a20112be62d0577e486cba77550b3389 (diff)
downloadslackbuilds-3e1c2a76e4bc95fae2160e7d4b68a76e9955062b.tar.gz
development/OpenJDK11: Updated for version 11.0.16.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/OpenJDK11/OpenJDK11.SlackBuild8
-rw-r--r--development/OpenJDK11/doinst.sh6
-rw-r--r--development/OpenJDK11/java.pngbin0 -> 1821 bytes
3 files changed, 11 insertions, 3 deletions
diff --git a/development/OpenJDK11/OpenJDK11.SlackBuild b/development/OpenJDK11/OpenJDK11.SlackBuild
index e5f2dfc921..26a66b8d73 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 ee4d704d04..39ec34e32e 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
new file mode 100644
index 0000000000..767f5aa1a3
--- /dev/null
+++ b/development/OpenJDK11/java.png
Binary files differ