Browse Source

l/openjdk11: Do not install as the default JDK.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
76e54c9fcd
  1. 9
      d/openjdk11/openjdk11.SlackBuild

9
d/openjdk11/openjdk11.SlackBuild

@ -70,7 +70,9 @@ NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/openjdk11
cd $PKG/usr/lib$LIBDIRSUFFIX/openjdk11
tar xf $CWD/$ARCHIVE --strip-components=1
ln -sf openjdk11/lib/server/libjvm.so $PKG/usr/lib$LIBDIRSUFFIX/libjvm.so
# Uncomment to install this JDK's libjvm library as the default one.
#ln -sf openjdk11/lib/server/libjvm.so $PKG/usr/lib$LIBDIRSUFFIX/libjvm.so
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
@ -93,7 +95,10 @@ setenv JAVA_HOME /usr/lib$LIBDIRSUFFIX/openjdk11
setenv MANPATH \${MANPATH}:\${JAVA_HOME}/man
setenv PATH \${PATH}:\${JAVA_HOME}/bin
EOF
chmod 755 $PKG/etc/profile.d/openjdk11.{sh,csh}
# Do not enable those profile files by default. Let the administrator
# decide in case these are several JDK/JRE available on the system.
chmod 644 $PKG/etc/profile.d/openjdk11.{sh,csh}
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save