openjdk17: move /etc/profile.d/10-openjdk*.sh to trigger

This commit is contained in:
classabbyamp 2022-03-20 16:12:05 -04:00 committed by Andrew J. Hesford
parent 5fee6cd20a
commit 5aec638e28

View File

@ -1,7 +1,7 @@
# Template file for 'openjdk17'
pkgname=openjdk17
version=17.0.3+7
revision=1
revision=2
_gtest_ver=1.8.1
_java_ver="${version%%.*}"
_jdk_update="${version#*+}"
@ -170,6 +170,8 @@ openjdk17-jre_package() {
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
short_desc+=" - runtime components"
provides="java-runtime-${version}_1"
depends="xbps-triggers>=0.122_1"
triggers="openjdk-profile"
alternatives="
java:/usr/bin/java:/${_jdk_home}/bin/java
java:/usr/bin/jfr:/${_jdk_home}/bin/jfr
@ -185,11 +187,6 @@ openjdk17-jre_package() {
vmove $_jdk_home/$f
done
vmkdir etc/profile.d
cat >>${PKGDESTDIR}/etc/profile.d/10_openjdk17.sh <<-EOF
export JAVA_HOME=\${JAVA_HOME=/$_jdk_home}
EOF
vlicense ASSEMBLY_EXCEPTION
vlicense LICENSE
}