blob: b69251e5776d778fabeba044b276e8a4e7a45105 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Aubrey Carlson (Carlson) <aubreycarlson24@outlook.com>
_javaver=21
_zuluver=21.38.21
_jdkver=21.0.5
pkgname="openjdk-zulu${_javaver}-ca-fx-bin"
pkgver="${_zuluver}+${_jdkver}"
pkgrel=2
pkgdesc="Azul Zulu Builds of OpenJDK ${_javaver} With OpenJFX are open source, TCK-tested and certified builds of OpenJDK ${_javaver}."
arch=('x86_64')
url='https://www.azul.com/downloads'
license=('custom')
depends=('java-environment-common>=3'
'java-runtime-common>=3'
'ca-certificates-utils')
provides=("java-environment=${_javaver}"
"java-environment-openjdk=${_javaver}"
"jdk${_javaver}-openjdk=${_javaver}"
"java-runtime=${_javaver}"
"java-runtime-openjdk=${_javaver}"
"jre${_javaver}-openjdk=${_javaver}"
"java-runtime-headless=${_javaver}"
"java-runtime-headless-openjdk=${_javaver}"
"jre${_javaver}-openjdk-headless=${_javaver}")
source=("https://cdn.azul.com/zulu/bin/zulu${_zuluver}-ca-fx-jdk${_jdkver}-linux_x64.tar.gz")
sha256sums=("01735b97399ec9facc8e9937622da9b505a3b10ce7ffc877d83fe581d13b13c5")
install="install_${pkgname}.sh"
_jvmdir="/usr/lib/jvm/${pkgname}"
package() {
cd ${srcdir}/zulu${_zuluver}-ca-fx-jdk${_jdkver}-linux_x64
install -dm 755 "${pkgdir}/${_jvmdir}"
cp -a . "${pkgdir}/${_jvmdir}"
# Conf
install -dm 755 "${pkgdir}/etc"
cp -r conf "${pkgdir}/etc/${pkgname}"
rm -r "${pkgdir}/${_jvmdir}/conf"
ln -s /etc/${pkgname} "${pkgdir}/${_jvmdir}/conf"
# Legal
install -dm 755 "${pkgdir}/usr/share/licenses"
cp -r legal "${pkgdir}/usr/share/licenses/${pkgname}"
rm -r "${pkgdir}/${_jvmdir}/legal"
ln -s /usr/share/licenses/${pkgname} "${pkgdir}/${_jvmdir}/legal"
# Man pages
for f in bin/*; do
f=$(basename "${f}")
_man=man/man1/"${f}.1"
test -f "${_man}" && install -Dm 644 "${_man}" "${pkgdir}/usr/share/man/man1/${f}-zulu${_jdkver}.1"
done
rm -r "${pkgdir}/${_jvmdir}/man"
ln -s /usr/share/man "${pkgdir}/${_jvmdir}/man"
# Link JKS keystore from ca-certificates-utils
rm -f "${pkgdir}${_jvmdir}/lib/security/cacerts"
ln -sf /etc/ssl/certs/java/cacerts "${pkgdir}${_jvmdir}/lib/security/cacerts"
}
|