blob: 63e00122ab30eb0a050a9db80f73f77264d956cb (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# Maintainer: Elier Lopez <elierrrlg@outlook.com>
# Contributor: Michael Lass <bevan@bi-co.net>
# Contributor: Guillaume ALAUX <guillaume@archlinux.org>
_majorver=18
_buildver=27
pkgrel=1
pkgver=${_majorver}.beta${_buildver}
_tag_ver=2021-12-15-03-37
pkgname=jdk18-beta-temurin
pkgdesc="Temurin (OpenJDK ${_majorver} beta Java binaries by Adoptium, formerly AdoptOpenJDK)"
arch=('x86_64')
url='https://adoptium.net/'
license=('custom')
depends=('java-runtime-common>=3' 'java-environment-common' 'ca-certificates-utils' 'desktop-file-utils' 'libxrender' 'libxtst' 'alsa-lib')
optdepends=('gtk2: for the Gtk+ 2 look and feel'
'gtk3: for the Gtk+ 3 look and feel')
provides=("java-runtime-headless=${_majorver}"
"java-runtime-headless-openjdk=${_majorver}"
"jre${_majorver}-openjdk-headless=${pkgver}"
"jre-openjdk-headless=${pkgver}"
"java-runtime=${_majorver}"
"java-runtime-openjdk=${_majorver}"
"jre${_majorver}-openjdk=${pkgver}"
"jre-openjdk=${pkgver}"
"java-environment=${_majorver}"
"java-environment-openjdk=${_majorver}"
"jdk${_majorver}-openjdk=${pkgver}"
"jdk-openjdk=${pkgver}"
"openjdk${_majorver}-src=${pkgver}"
"openjdk-src=${pkgver}")
backup=(etc/java-18-temurin/logging.properties
etc/java-18-temurin/management/jmxremote.access
etc/java-18-temurin/management/jmxremote.password.template
etc/java-18-temurin/management/management.properties
etc/java-18-temurin/net.properties
etc/java-18-temurin/sdp/sdp.conf.template
etc/java-18-temurin/security/java.policy
etc/java-18-temurin/security/java.security
etc/java-18-temurin/security/policy/limited/default_local.policy
etc/java-18-temurin/security/policy/limited/default_US_export.policy
etc/java-18-temurin/security/policy/limited/exempt_local.policy
etc/java-18-temurin/security/policy/README.txt
etc/java-18-temurin/security/policy/unlimited/default_local.policy
etc/java-18-temurin/security/policy/unlimited/default_US_export.policy
etc/java-18-temurin/sound.properties)
install=install_jdk-temurin.sh
source=(https://github.com/adoptium/temurin${_majorver}-binaries/releases/download/jdk${_majorver}-${_tag_ver/+/%2B}-beta/OpenJDK${_majorver}-jdk_x64_linux_hotspot_${_tag_ver/+/_}.tar.gz
freedesktop-java.desktop
freedesktop-jconsole.desktop
freedesktop-jshell.desktop)
sha256sums=('279e4e3a116de7b20c890b851e98c8ba504b4292d56b663b88ba43214a6175e2'
'ea75ce65e1393a91fcb83beed3b84759a88bbe9df1ab4efa440062bbd2fe6c1f'
'36b2ff191c81ce5eef9e1eed2acc54dba78b2bcdf47532607f0cc9302503a265'
'b73453a639017037627d926cf2179d1c7e296d9c0804747848d1c799ca38652c')
_jvmdir=/usr/lib/jvm/java-${_majorver}-temurin
_jdkdir=jdk-${_majorver}+${_buildver}
package() {
install -dm 755 "${pkgdir}${_jvmdir}"
cp -a "${srcdir}/${_jdkdir}"/* "${pkgdir}${_jvmdir}"
cd "${pkgdir}${_jvmdir}"
# Conf
install -dm 755 "${pkgdir}/etc"
mv conf "${pkgdir}/etc/java-18-temurin"
ln -sf /etc/java-18-temurin conf
# Legal
install -dm 755 "${pkgdir}/usr/share/licenses"
mv legal "${pkgdir}/usr/share/licenses/${pkgname}"
ln -sf /usr/share/licenses/${pkgname} legal
# Man pages
for f in man/man1/*; do
install -Dm 644 "${f}" "${pkgdir}/usr/share/${f/\.1/-temurin${_majorver}.1}"
done
rm -rf man
ln -sf /usr/share/man man
# Link JKS keystore from ca-certificates-utils
rm -f lib/security/cacerts
ln -sf /etc/ssl/certs/java/cacerts lib/security/cacerts
# Desktop files
for f in jconsole java jshell; do
install -Dm 644 \
"${srcdir}/freedesktop-${f}.desktop" \
"${pkgdir}/usr/share/applications/${f}-${pkgname}.desktop"
done
}
|