development/OpenJDK11: Updated for version 11.0.16.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
7c5c0df2a2
commit
3e1c2a76e4
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Loading…
Reference in New Issue