summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Fernyhough2020-01-27 20:43:59 +0000
committerJonathon Fernyhough2020-01-27 20:43:59 +0000
commitcc0c374097c8619211c0a8382014f3fa573089be (patch)
tree17c6829bfac92b7f2286aba844eb65883520ef53
downloadaur-cc0c374097c8619211c0a8382014f3fa573089be.tar.gz
Initial commit
-rw-r--r--.SRCINFO50
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD86
-rw-r--r--liberica-jdk-11-full.install50
4 files changed, 191 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..66933646c0c0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,50 @@
+pkgbase = liberica-jdk-11-full-bin
+ pkgdesc = BellSoft builds of OpenJDK are fully certified and 100% open source Java Development Kits (JDKs) for all Java development and production workloads. Full version includes OpenJFX.
+ pkgver = 11.0.6+10
+ pkgrel = 1
+ url = https://bell-sw.com/
+ install = liberica-jdk-11-full.install
+ arch = armv7h
+ arch = armv8h
+ arch = x86_64
+ license = custom
+ depends = java-environment-common=3
+ depends = java-runtime-common>=3
+ depends = ca-certificates-utils
+ optdepends = ffmpeg
+ optdepends = freetype2
+ optdepends = gtk2
+ optdepends = gtk3
+ optdepends = libnet
+ provides = java-environment=11
+ provides = java-environment-openjdk=11
+ provides = java-runtime-headless=11
+ provides = java-runtime-headless-openjdk=11
+ provides = java-runtime=11
+ provides = java-runtime-openjdk=11
+ provides = liberica-jdk-11-bin=11.0.6
+ provides = liberica-jdk-11-lite-bin=11.0.6
+ provides = liberica-jre-11-bin=11.0.6
+ provides = liberica-jre-11-full-bin=11.0.6
+ backup = etc/liberica-jdk-11-full/logging.properties
+ backup = etc/liberica-jdk-11-full/management/jmxremote.access
+ backup = etc/liberica-jdk-11-full/management/jmxremote.password.template
+ backup = etc/liberica-jdk-11-full/management/management.properties
+ backup = etc/liberica-jdk-11-full/net.properties
+ backup = etc/liberica-jdk-11-full/security/java.policy
+ backup = etc/liberica-jdk-11-full/security/java.security
+ backup = etc/liberica-jdk-11-full/security/policy/README.txt
+ backup = etc/liberica-jdk-11-full/security/policy/limited/default_US_export.policy
+ backup = etc/liberica-jdk-11-full/security/policy/limited/default_local.policy
+ backup = etc/liberica-jdk-11-full/security/policy/limited/exempt_local.policy
+ backup = etc/liberica-jdk-11-full/security/policy/unlimited/default_US_export.policy
+ backup = etc/liberica-jdk-11-full/security/policy/unlimited/default_local.policy
+ backup = etc/liberica-jdk-11-full/sound.properties
+ source_armv7h = https://download.bell-sw.com/java/11.0.6+10/bellsoft-jdk11.0.6+10-linux-arm32-vfp-hflt-full.tar.gz
+ sha1sums_armv7h = 8f67a8746beeca28e60a4d5300427df06967d781
+ source_armv8h = https://download.bell-sw.com/java/11.0.6+10/bellsoft-jdk11.0.6+10-linux-arm32-vfp-hflt-full.tar.gz
+ source_x86_64 = https://download.bell-sw.com/java/11.0.6+10/bellsoft-jdk11.0.6+10-linux-amd64-full.tar.gz
+ sha1sums_x86_64 = 4a481bde59a94104be08c8b19b1522cab77534b8
+
+pkgname = liberica-jdk-11-full-bin
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..5e5840ea06ee
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/*.tar.gz
+/*.pkg.tar*
+
+/src/
+/pkg/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..0d8635ce73c0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,86 @@
+# Maintainer: Jonathon Fernyhough <jonathon"manjaro+org>
+# Contributor: Sam Guymer <sam at guymer dot me>
+
+# This PKGBUILD adapted from zulu-11-bin
+
+_jdkname=liberica-jdk-11-full
+pkgname="${_jdkname}-bin"
+_java_ver=11
+pkgver=11.0.6+10
+pkgrel=1
+pkgdesc='BellSoft builds of OpenJDK are fully certified and 100% open source Java Development Kits (JDKs) for all Java development and production workloads. Full version includes OpenJFX.'
+arch=(armv7h armv8h x86_64)
+url='https://bell-sw.com/'
+license=('custom')
+depends=('java-environment-common=3' 'java-runtime-common>=3' 'ca-certificates-utils')
+optdepends=(ffmpeg freetype2 gtk2 gtk3 libnet)
+provides=(
+ "java-environment=$_java_ver"
+ "java-environment-openjdk=$_java_ver"
+ "java-runtime-headless=$_java_ver"
+ "java-runtime-headless-openjdk=$_java_ver"
+ "java-runtime=$_java_ver"
+ "java-runtime-openjdk=$_java_ver"
+ "liberica-jdk-11-bin=${pkgver/+*/}"
+ "liberica-jdk-11-lite-bin=${pkgver/+*/}"
+ "liberica-jre-11-bin=${pkgver/+*/}"
+ "liberica-jre-11-full-bin=${pkgver/+*/}"
+)
+install=$_jdkname.install
+
+backup=(etc/${_jdkname}/logging.properties
+ etc/${_jdkname}/management/jmxremote.access
+ etc/${_jdkname}/management/jmxremote.password.template
+ etc/${_jdkname}/management/management.properties
+ etc/${_jdkname}/net.properties
+ etc/${_jdkname}/security/java.policy
+ etc/${_jdkname}/security/java.security
+ etc/${_jdkname}/security/policy/README.txt
+ etc/${_jdkname}/security/policy/limited/default_US_export.policy
+ etc/${_jdkname}/security/policy/limited/default_local.policy
+ etc/${_jdkname}/security/policy/limited/exempt_local.policy
+ etc/${_jdkname}/security/policy/unlimited/default_US_export.policy
+ etc/${_jdkname}/security/policy/unlimited/default_local.policy
+ etc/${_jdkname}/sound.properties)
+
+source_armv7h=(https://download.bell-sw.com/java/$pkgver/bellsoft-jdk$pkgver-linux-arm32-vfp-hflt-full.tar.gz)
+source_armv8h=(${source_armv7h[@]})
+source_x86_64=(https://download.bell-sw.com/java/$pkgver/bellsoft-jdk$pkgver-linux-amd64-full.tar.gz)
+
+# Upstream-provided
+sha1sums_armv7h=('8f67a8746beeca28e60a4d5300427df06967d781')
+sha1sums_x86_64=('4a481bde59a94104be08c8b19b1522cab77534b8')
+
+_jvmdir="/usr/lib/jvm/${_jdkname}"
+
+package() {
+ cd jdk-${pkgver/+*/}
+
+ install -dm 755 "${pkgdir}/${_jvmdir}"
+ cp -a . "${pkgdir}/${_jvmdir}/"
+
+ # copied from java11-openjdk
+
+ # Conf
+ install -dm 755 "${pkgdir}/etc"
+ cp -r conf "${pkgdir}/etc/${_jdkname}"
+ rm -rf "${pkgdir}/${_jvmdir}/conf"
+ ln -s "/etc/${_jdkname}" "${pkgdir}/${_jvmdir}/conf"
+
+ # Legal
+ install -dm 755 "${pkgdir}/usr/share/licenses"
+ cp -r legal "${pkgdir}/usr/share/licenses/${_jdkname}"
+ rm -rf "${pkgdir}/${_jvmdir}/legal"
+ ln -s "/usr/share/licenses/${_jdkname}" "${pkgdir}/${_jvmdir}/legal"
+
+ # Man pages
+ for f in man/man1/* man/ja/man1/*; do
+ install -Dm 644 "${f}" "${pkgdir}/usr/share/${f/\.1/-$_jdkname.1}"
+ done
+ rm -rf "${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"
+}
diff --git a/liberica-jdk-11-full.install b/liberica-jdk-11-full.install
new file mode 100644
index 000000000000..35eee177244b
--- /dev/null
+++ b/liberica-jdk-11-full.install
@@ -0,0 +1,50 @@
+THIS_JDK='liberica-jdk-11-full'
+
+fix_default() {
+ if [ ! -x /usr/bin/java ]; then
+ /usr/bin/archlinux-java unset
+ echo ""
+ else
+ /usr/bin/archlinux-java get
+ fi
+}
+
+post_install() {
+ default=$(fix_default)
+ case ${default} in
+ "" | ${THIS_JDK}/jre)
+ /usr/bin/archlinux-java set ${THIS_JDK}
+ ;;
+ ${THIS_JDK})
+ # Nothing
+ ;;
+ *)
+ echo "Default Java environment is already set to '${default}'"
+ echo "See 'archlinux-java help' to change it"
+ ;;
+ esac
+
+ if [ ! -f /etc/ssl/certs/java/cacerts ]; then
+ /usr/bin/update-ca-trust
+ fi
+}
+
+post_upgrade() {
+ default=$(fix_default)
+ if [ -z "${default}" -o "x${default}" = "x${THIS_JDK}/jre" ]; then
+ /usr/bin/archlinux-java set ${THIS_JDK}
+ fi
+
+ if [ ! -f /etc/ssl/certs/java/cacerts ]; then
+ /usr/bin/update-ca-trust
+ fi
+}
+
+pre_remove() {
+ if [ "x$(fix_default)" = "x${THIS_JDK}" ]; then
+ /usr/bin/archlinux-java unset
+ if [ -x /usr/lib/jvm/${THIS_JDK}/jre/bin/java ]; then
+ /usr/bin/archlinux-java set ${THIS_JDK}/jre
+ fi
+ fi
+}