summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorYang Jeong Hun2020-11-07 00:44:50 +0900
committerYang Jeong Hun2020-11-07 00:44:50 +0900
commit04c18d0dbe512786388b0e0083df5040d0ccfba4 (patch)
treeb1471828b440cca95cc260e811e5bc20ab79e9cd /PKGBUILD
downloadaur-04c18d0dbe512786388b0e0083df5040d0ccfba4.tar.gz
Initial commit
* Thanks to @jonathon make base liberica openjdk install script. Signed-off-by: Yang Jeong Hun <onyxclover9931@gmail.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD91
1 files changed, 91 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b66f934f2fe
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,91 @@
+# Maintainer: Yang Jeong Hun (Nevuly) <onyxclover9931@gmail.com>
+# Contributor: Sam Guymer <sam at guymer dot me>
+
+# This PKGBUILD adapted from zulu-8-bin
+
+_jdkname=liberica-jre-8-full
+pkgname="${_jdkname}-bin"
+_java_ver=8
+pkgver=8u275+1
+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=(i686 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-jre-8-bin=$pkgver"
+)
+install=$_jdkname.install
+
+source_i686=(https://download.bell-sw.com/java/$pkgver/bellsoft-jre$pkgver-linux-i586-full.tar.gz)
+source_x86_64=(https://download.bell-sw.com/java/$pkgver/bellsoft-jre$pkgver-linux-amd64-full.tar.gz)
+
+# Upstream-provided
+sha1sums_i686=('32acd9a9dcc88283ecd44535a4e24327b1882f98')
+sha1sums_x86_64=('02b9a7faf6f82baead652363a9b51301227b6474')
+
+_jvmdir="/usr/lib/jvm/${_jdkname}"
+
+# Upstream config files that should go to etc and get backup
+_conf_files=(
+ amd64/jvm.cfg
+ calendars.properties
+ content-types.properties
+ flavormap.properties
+ images/cursors/cursors.properties
+ logging.properties
+ management/jmxremote.access
+ management/jmxremote.password
+ management/management.properties
+ management/snmp.acl
+ net.properties
+ psfont.properties.ja
+ psfontj2d.properties
+ security/java.policy
+ security/java.security
+ sound.properties
+)
+
+package() {
+ cd jre${pkgver/+*/}-full
+
+ install -dm 755 "${pkgdir}/${_jvmdir}"
+ cp -a * "${pkgdir}/${_jvmdir}/"
+
+ # copied from java8-openjdk
+
+ # Set config files
+ mv "${pkgdir}${_jvmdir}"/lib/management/jmxremote.password{.template,}
+ mv "${pkgdir}${_jvmdir}"/lib/management/snmp.acl{.template,}
+
+ # Conf
+ install -dm 755 "${pkgdir}/etc/${_jdkname}"
+ for f in "${_conf_files[@]}"; do
+ _file="${_jvmdir}/lib/$f"
+ install -D -m 644 "${pkgdir}${_file}" "${pkgdir}/etc/${_jdkname}/$f"
+ ln -sf "/etc/${_jdkname}/$f" "${pkgdir}${_file}"
+ done
+
+ # Install license
+ install -d -m 755 "${pkgdir}/usr/share/licenses/${_jdkname}/"
+ install -m 644 ASSEMBLY_EXCEPTION LICENSE THIRD_PARTY_README "${pkgdir}/usr/share/licenses/${_jdkname}"
+
+ # 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"
+}