development/liberica-jdk-bin: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
1f93249ca6
commit
5478b47bbf
|
@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
|
|||
|
||||
PRGNAM=liberica-jdk-bin
|
||||
VERSION=${VERSION:-21.0.3+10}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -67,11 +67,17 @@ find -L . \
|
|||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
mkdir -p $PKG/etc/profile.d
|
||||
for s in $PRGNAM.sh $PRGNAM.csh ; do
|
||||
sed "s|/usr/lib|/usr/lib$LIBDIRSUFFIX/liberica-$JDKNAM|" $CWD/$s \
|
||||
> $PKG/etc/profile.d/$s
|
||||
chmod 755 $PKG/etc/profile.d/$s
|
||||
done
|
||||
cat > $PKG/etc/profile.d/liberica-jdk-bin.csh << EOF
|
||||
setenv JAVA_HOME /usr/lib${LIBDIRSUFFIX}/liberica-${JDKNAM}
|
||||
setenv PATH \${PATH}:\${JAVA_HOME}/bin
|
||||
EOF
|
||||
cat > $PKG/etc/profile.d/liberica-jdk-bin.sh << EOF
|
||||
export JAVA_HOME="/usr/lib${LIBDIRSUFFIX}/liberica-${JDKNAM}"
|
||||
export PATH="\${PATH}:\${JAVA_HOME}/bin"
|
||||
EOF
|
||||
|
||||
chmod 0755 $PKG/etc/profile.d/liberica-jdk-bin.csh
|
||||
chmod 0755 $PKG/etc/profile.d/liberica-jdk-bin.sh
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
setenv JAVA_HOME /usr/lib
|
||||
setenv PATH ${PATH}:${JAVA_HOME}/bin
|
||||
setenv MANPATH ${MANPATH}:${JAVA_HOME}/man
|
|
@ -1,3 +0,0 @@
|
|||
export JAVA_HOME=/usr/lib
|
||||
export PATH="${PATH}:${JAVA_HOME}/bin"
|
||||
export MANPATH="${MANPATH}:${JAVA_HOME}/man"
|
Loading…
Reference in New Issue