extra/java-openjdk to 16.0.1.u9-1

This commit is contained in:
Kevin Mihelich 2021-06-17 00:28:23 +00:00
parent e02ebdb7a6
commit 38dec386ac
7 changed files with 33 additions and 32 deletions

View file

@ -21,13 +21,13 @@
pkgbase=java-openjdk
pkgname=('jre-openjdk-headless' 'jre-openjdk' 'jdk-openjdk' 'openjdk-src')
_majorver=15
_majorver=16
_minorver=0
_securityver=3
_updatever=3
_securityver=1
_updatever=9
pkgrel=1
pkgver=${_majorver}.${_minorver}.${_securityver}.u${_updatever}
_hg_tag=jdk-${_majorver}.${_minorver}.${_securityver}+${_updatever}
_git_tag=jdk-${_majorver}.${_minorver}.${_securityver}+${_updatever}
arch=('x86_64')
url='https://openjdk.java.net/'
license=('custom')
@ -35,14 +35,14 @@ makedepends=('java-environment>=11' 'cpio' 'unzip' 'zip' 'libelf' 'libcups' 'lib
'libxrender' 'libxtst' 'libxt' 'libxext' 'libxrandr' 'alsa-lib'
'graphviz' 'freetype2' 'libjpeg-turbo' 'giflib' 'libpng' 'lcms2'
'libnet' 'bash' 'harfbuzz' 'gcc-libs' 'glibc')
source=(https://hg.openjdk.java.net/jdk-updates/jdk${_majorver}u/archive/${_hg_tag}.tar.gz
source=(https://github.com/openjdk/jdk${_majorver}u/archive/${_git_tag}.tar.gz
freedesktop-java.desktop
freedesktop-jconsole.desktop
freedesktop-jshell.desktop)
sha256sums=('4bbd7a73354a2d244c7a075406339aa0ce4c5fc6be91a795af931f6dc95d067c'
'30b38fcbf1fcab6b33aea2e6d82e611f7d0ea974d1d11a87a262f598ba006fd9'
'971a71d0a80d6e5e47d5ea722b723088e86425a943a5c3615da95417c8f5aca2'
'77e45ece92bc9b0c638f5468c2050cc1dc4508308ec302e6910e793be97687ac')
sha256sums=('3b3aca61fe2834322e51636d99bcd09c4abba7d8a2cde231dbcbcbdedf829baf'
'11150daae08fff25309dcc060c07cd056181644d2b563c22668b98e306e8f2db'
'c0673d680cc728af88bec89275f0a8e2199d52e48b5c5b0aa2d921bedbc2e12f'
'0cdf3dc10a64c5e589e655276189422b60a6b3294539164a6f29123d6b2046c7')
case "${CARCH}" in
x86_64) _JARCH='x86_64';;
@ -52,7 +52,7 @@ case "${CARCH}" in
esac
_jvmdir=/usr/lib/jvm/java-${_majorver}-openjdk
_jdkdir=jdk${_majorver}u-${_hg_tag}
_jdkdir=jdk${_majorver}u-${_git_tag//+/-}
if [[ $CARCH == "arm" ]]; then
_imgdir=${_jdkdir}/build/linux-${_JARCH}-zero-release/images
else
@ -93,7 +93,7 @@ build() {
# --with-extra-cflags="${CFLAGS}"
# --with-extra-cxxflags="${CXXFLAGS}"
# --with-extra-ldflags="${LDFLAGS}"
# See also paragraph "Configure Control Variables from "jdk${_majorver}-${_hg_tag}/common/doc/building.md
# See also paragraph "Configure Control Variables from "jdk${_majorver}-${_git_tag}/common/doc/building.md
unset CFLAGS
unset CXXFLAGS
unset LDFLAGS
@ -117,6 +117,7 @@ build() {
--with-libpng=system \
--with-lcms=system \
--with-zlib=system \
--with-harfbuzz=system \
--enable-unlimited-crypto \
--disable-warnings-as-errors \
--with-jvm-variants=$_variants \
@ -130,7 +131,7 @@ build() {
}
check() {
cd jdk${_majorver}u-${_hg_tag}
cd ${_jdkdir}
# TODO package jtreg
# make -k check
}
@ -265,7 +266,7 @@ package_jdk-openjdk() {
# Icons
for s in 16 24 32 48; do
install -Dm 644 \
"${srcdir}/jdk${_majorver}u-${_hg_tag}/src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png" \
"${srcdir}/${_jdkdir}/src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png" \
"${pkgdir}/usr/share/icons/hicolor/${s}x${s}/apps/${pkgbase}.png"
done

View file

@ -1,12 +1,12 @@
[Desktop Entry]
Name=OpenJDK Java 15 Runtime
Name[fi]=OpenJDK Java 15 - ajonaikainen ympäristö
Comment=OpenJDK Java 15 Runtime
Comment[fi]=OpenJDK Java 15 - ajonaikainen ympäristö
Name=OpenJDK Java 16 Runtime
Name[fi]=OpenJDK Java 16 - ajonaikainen ympäristö
Comment=OpenJDK Java 16 Runtime
Comment[fi]=OpenJDK Java 16 - ajonaikainen ympäristö
Keywords=java;runtime
Exec=/usr/lib/jvm/java-15-openjdk/bin/java -jar
Exec=/usr/lib/jvm/java-16-openjdk/bin/java -jar
Terminal=false
Type=Application
Icon=java15-openjdk
Icon=java16-openjdk
MimeType=application/x-java-archive;application/java-archive;application/x-jar;
NoDisplay=true

View file

@ -1,11 +1,11 @@
[Desktop Entry]
Name=OpenJDK Java 15 Console
Name[fi]=OpenJDK Java 15 - konsoli
Comment=OpenJDK Java 15 Monitoring & Management Console
Comment[fi]=OpenJDK Java 15 - valvonta- ja hallintakonsoli
Name=OpenJDK Java 16 Console
Name[fi]=OpenJDK Java 16 - konsoli
Comment=OpenJDK Java 16 Monitoring & Management Console
Comment[fi]=OpenJDK Java 16 - valvonta- ja hallintakonsoli
Keywords=java;console;monitoring
Exec=/usr/lib/jvm/java-15-openjdk/bin/jconsole
Exec=/usr/lib/jvm/java-16-openjdk/bin/jconsole
Terminal=false
Type=Application
Icon=java15-openjdk
Icon=java16-openjdk
Categories=Application;System;

View file

@ -1,9 +1,9 @@
[Desktop Entry]
Name=OpenJDK Java 15 Shell
Comment=OpenJDK Java 15 Shell
Name=OpenJDK Java 16 Shell
Comment=OpenJDK Java 16 Shell
Keywords=java;shell
Exec=/usr/lib/jvm/java-15-openjdk/bin/jshell
Exec=/usr/lib/jvm/java-16-openjdk/bin/jshell
Terminal=true
Type=Application
Icon=java15-openjdk
Icon=java16-openjdk
Categories=Application;System;

View file

@ -1,4 +1,4 @@
THIS_JDK='java-15-openjdk'
THIS_JDK='java-16-openjdk'
fix_default() {
if [ ! -x /usr/bin/java ]; then

View file

@ -1,4 +1,4 @@
THIS_JRE='java-15-openjdk'
THIS_JRE='java-16-openjdk'
fix_default() {
if [ ! -x /usr/bin/java ]; then

View file

@ -1,4 +1,4 @@
THIS_JRE='java-15-openjdk'
THIS_JRE='java-16-openjdk'
fix_default() {
if [ ! -x /usr/bin/java ]; then