From 65e16b81f53028b4ecd84e58972798e41a7c269e Mon Sep 17 00:00:00 2001 From: Anton Afanasyev Date: Sat, 19 Oct 2019 10:36:50 -0700 Subject: [PATCH] New package: jetbrains-jdk-bin-11.0.5b562.2 --- srcpkgs/jetbrains-jdk-bin/template | 34 ++++++++++++++++++++++++++++++ srcpkgs/jetbrains-jdk-bin/update | 6 ++++++ 2 files changed, 40 insertions(+) create mode 100644 srcpkgs/jetbrains-jdk-bin/template create mode 100644 srcpkgs/jetbrains-jdk-bin/update diff --git a/srcpkgs/jetbrains-jdk-bin/template b/srcpkgs/jetbrains-jdk-bin/template new file mode 100644 index 00000000000..d5f175eb2c3 --- /dev/null +++ b/srcpkgs/jetbrains-jdk-bin/template @@ -0,0 +1,34 @@ +# Template file for 'jetbrains-jdk-bin' +pkgname=jetbrains-jdk-bin +version=11.0.5b562.2 +revision=1 +archs="x86_64" +wrksrc="jbrsdk" +hostmakedepends="wget" +short_desc="JetBrains Java 11 JDK" +maintainer="Anton Afanasyev " +license="GPL-2.0-only, Classpath-exception-2.0" +homepage="https://github.com/JetBrains/JetBrainsRuntime" +_jdk_ver=${version%b*} +_jdk_build=${version#*b} +distfiles="https://dl.bintray.com/jetbrains/intellij-jbr/jbrsdk-${_jdk_ver//\./_}-linux-x64-b${_jdk_build}.tar.gz" +checksum=a8dcf5173de669c893c7dcfe1b44997293972a7cec193feb11b79475eb77f56f +# This JDK appears to link to libs that do not exist, but still continues to function well even in their absence. +# Best guess is that they are optional. ¯\_(ツ)_/¯ +noverifyrdeps=yes +fetch_cmd="wget" +nopie=yes + +do_install() { + TARGET_PATH="usr/lib/jvm/jbrsdk" + + vmkdir ${TARGET_PATH} + + vcopy bin ${TARGET_PATH} + vcopy conf ${TARGET_PATH} + vcopy include ${TARGET_PATH} + vcopy jmods ${TARGET_PATH} + vcopy legal ${TARGET_PATH} + vcopy lib ${TARGET_PATH} + vcopy release ${TARGET_PATH} +} diff --git a/srcpkgs/jetbrains-jdk-bin/update b/srcpkgs/jetbrains-jdk-bin/update new file mode 100644 index 00000000000..ef354cac3dd --- /dev/null +++ b/srcpkgs/jetbrains-jdk-bin/update @@ -0,0 +1,6 @@ +# NOTE: This does not check the jdk_ver part of the version (eg 11.0.4) +# If it changes, this update check will not detect it, it will only detect the build number change. +# It will be up to the maintainer to go hunt down the correct jdk version and update the template. +_jdk_build=${version#*b} +version=b${_jdk_build} +pattern="jbrsdk-\d+_\d+_\d+-(?:linux-x64-)\Kb\d+\.\d+(?=\.tar\.gz)"