From 3e1c2a76e4bc95fae2160e7d4b68a76e9955062b Mon Sep 17 00:00:00 2001 From: Lenard Spencer Date: Tue, 27 Sep 2022 03:32:23 +0100 Subject: [PATCH] development/OpenJDK11: Updated for version 11.0.16.1. Signed-off-by: Willy Sudiarto Raharjo --- development/OpenJDK11/OpenJDK11.SlackBuild | 8 +++++--- development/OpenJDK11/doinst.sh | 6 ++++++ development/OpenJDK11/java.png | Bin 0 -> 1821 bytes 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 development/OpenJDK11/java.png 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 0000000000000000000000000000000000000000..767f5aa1a36886a16344687c34c757d72e2d2299 GIT binary patch literal 1821 zcmV+&2jcjNP)004R=004l4008;_004mL004C`008P>0026e000+nl3&F}00006 zVoOIv0RI600RN!9r;`8x010qNS#tmY3ljhU3ljkVnw%H_000McNliru<_Q@QCmjFi z4>kY*1`J6=K~zY`b(TwPTvr{&f9Kvik2~)fJH(ksF&(@vNM}HWLdVuIzs?{;3K6ZnM{HK!?TCh zO4V0e7t2eHUpZa*)&VFwtkF(XVDmg-3t5z z#?0Up(#daSQwfYQ=yjeK?TWZ_=MMk;;2+G-&vWdJA2Kw!10lpS-y|N1l8DEKErEz& zKx>21`v0ajhL-0sH8nw_(O`0Ff|DnI!`S6ZNTo1lJ)BwFH@2g+Y9IcLS}X*Ml?s!S zlSnD?gMj&kdER~ZBti)G?fr6FmZ$IrVFXHRETuHstg)_Bi8h-5+`h&1^nX!+?|EPh z<;nu@z4v<_JiL#=tcz1hVJW57q|hj1o|@Vi>h%UABWI~K>g;kHe&)LT6xc5W_ogOz z|IepswOVMyXK-yIr4*l$XdQzs!L3_2xbpEewgNv-r5Ma)Adz5Kvx#4?GkR&1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