summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD67
-rw-r--r--java.desktop10
-rw-r--r--java_16.pngbin0 -> 383 bytes
-rw-r--r--java_48.pngbin0 -> 1439 bytes
-rw-r--r--jconsole.desktop9
-rw-r--r--jdk11.install50
-rw-r--r--jshell.desktop9
8 files changed, 175 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..967831be78f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = jdk11
+ pkgdesc = Oracle Java Development Kit
+ pkgver = 11.0.2
+ pkgrel = 1
+ url = https://www.oracle.com/java/
+ install = jdk11.install
+ arch = x86_64
+ license = custom
+ depends = java-environment-common
+ depends = jre>=11
+ depends = jre<12
+ depends = zlib
+ depends = hicolor-icon-theme
+ provides = java-environment=11
+ provides = java-environment-jdk=11
+ source = https://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.tar.gz
+ source = java.desktop
+ source = jconsole.desktop
+ source = jshell.desktop
+ source = java_16.png
+ source = java_48.png
+ sha256sums = 7b4fd8ffcf53e9ff699d964a80e4abf9706b5bdb5644a765c2b96f99e3a2cdc8
+ sha256sums = 1052634cdcbf50ca14b864b58f3afa53de1706bdc9c593667c29974146212c54
+ sha256sums = 9a84d1b4dd969e867b2dbb6df0d0c44814729e0f1d0c61ab6c54d676eae83b3b
+ sha256sums = 73d686fd6e478a887a51451d7ada7c045f31ce299f65f45e50a793820ee99d85
+ sha256sums = d27fec1d74f7a3081c3d175ed184d15383666dc7f02cc0f7126f11549879c6ed
+ sha256sums = 7cf8ca096e6d6e425b3434446b0835537d0fc7fe64b3ccba7a55f7bd86c7e176
+
+pkgname = jdk11
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c72b43c1066
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,67 @@
+# Maintainer : Daniel Bermond < gmail-com: danielbermond >
+# Contributor: Det <nimetonmaili g-mail>
+
+pkgname=jdk11
+pkgver=11.0.2
+_build=9
+_hash=f51449fcd52f4d52b93a989c5c56ed3c
+_majver="${pkgver%%.*}"
+_next="$((_majver + 1))"
+pkgrel=1
+pkgdesc='Oracle Java Development Kit'
+arch=('x86_64')
+url='https://www.oracle.com/java/'
+license=('custom')
+depends=('java-environment-common' "jre>=${_majver}" "jre<${_next}" 'zlib' 'hicolor-icon-theme')
+provides=("java-environment=${_majver}" "java-environment-jdk=${_majver}")
+install="${pkgname}.install"
+source=("https://download.oracle.com/otn-pub/java/jdk/${pkgver}+${_build}/${_hash}/jdk-${pkgver}_linux-x64_bin.tar.gz"
+ 'java.desktop'
+ 'jconsole.desktop'
+ 'jshell.desktop'
+ 'java_16.png'
+ 'java_48.png')
+sha256sums=('7b4fd8ffcf53e9ff699d964a80e4abf9706b5bdb5644a765c2b96f99e3a2cdc8'
+ '1052634cdcbf50ca14b864b58f3afa53de1706bdc9c593667c29974146212c54'
+ '9a84d1b4dd969e867b2dbb6df0d0c44814729e0f1d0c61ab6c54d676eae83b3b'
+ '73d686fd6e478a887a51451d7ada7c045f31ce299f65f45e50a793820ee99d85'
+ 'd27fec1d74f7a3081c3d175ed184d15383666dc7f02cc0f7126f11549879c6ed'
+ '7cf8ca096e6d6e425b3434446b0835537d0fc7fe64b3ccba7a55f7bd86c7e176')
+
+DLAGENTS=('https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -b oraclelicense=a -o %o %u')
+
+package() {
+ cd "jdk-${pkgver}"
+
+ local _jvmdir="/usr/lib/jvm/java-${_majver}-${pkgname}"
+
+ install -d -m755 "${pkgdir}/${_jvmdir}"
+ install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
+
+ # bin
+ cp -a bin "${pkgdir}/${_jvmdir}"
+ rm "${pkgdir}/${_jvmdir}/bin/"{java,jjs,jrunscript,keytool,pack200}
+ rm "${pkgdir}/${_jvmdir}/bin/"{rmid,rmiregistry,unpack200}
+
+ # libs
+ install -D -m644 lib/ct.sym -t "${pkgdir}/${_jvmdir}/lib"
+ install -D -m644 lib/libattach.so -t "${pkgdir}/${_jvmdir}/lib"
+ install -D -m644 lib/libsaproc.so -t "${pkgdir}/${_jvmdir}/lib"
+ cp -a lib/jfr "${pkgdir}/${_jvmdir}/lib"
+
+ cp -a include "${pkgdir}/${_jvmdir}"
+ cp -a jmods "${pkgdir}/${_jvmdir}"
+
+ install -D -m644 lib/src.zip -t "${pkgdir}/${_jvmdir}/lib"
+
+ # desktop and icons
+ install -D -m644 "${srcdir}/java.desktop" "${pkgdir}/usr/share/applications/java-java${_majver}-jdk.desktop"
+ install -D -m644 "${srcdir}/jconsole.desktop" "${pkgdir}/usr/share/applications/jconsole-java${_majver}-jdk.desktop"
+ install -D -m644 "${srcdir}/jshell.desktop" "${pkgdir}/usr/share/applications/jshell-java${_majver}-jdk.desktop"
+ install -D -m644 "${srcdir}/java_16.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/java${_majver}-jdk.png"
+ install -D -m644 "${srcdir}/java_48.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/java${_majver}-jdk.png"
+
+ # legal/licenses
+ cp -a legal/* "${pkgdir}/usr/share/licenses/${pkgname}"
+ ln -s "$pkgname" "${pkgdir}/usr/share/licenses/java${_majver}-${pkgname}"
+}
diff --git a/java.desktop b/java.desktop
new file mode 100644
index 00000000000..1c3cf4e50ab
--- /dev/null
+++ b/java.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Oracle Java 11 Runtime
+Comment=Oracle Java 11 Runtime
+Keywords=java;runtime
+Exec=/usr/lib/jvm/java-11-jdk/bin/java -jar
+Terminal=false
+Type=Application
+Icon=java11-jdk
+MimeType=application/x-java-archive;application/java-archive;application/x-jar;
+NoDisplay=true
diff --git a/java_16.png b/java_16.png
new file mode 100644
index 00000000000..0456bab3043
--- /dev/null
+++ b/java_16.png
Binary files differ
diff --git a/java_48.png b/java_48.png
new file mode 100644
index 00000000000..9fa80e761a7
--- /dev/null
+++ b/java_48.png
Binary files differ
diff --git a/jconsole.desktop b/jconsole.desktop
new file mode 100644
index 00000000000..f2b689b9b2f
--- /dev/null
+++ b/jconsole.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Oracle Java 11 Console
+Comment=Oracle Java 11 Monitoring and Management Console
+Keywords=java;console;monitoring
+Exec=/usr/lib/jvm/java-11-jdk/bin/jconsole
+Terminal=false
+Type=Application
+Icon=java11-jdk
+Categories=Application;System;
diff --git a/jdk11.install b/jdk11.install
new file mode 100644
index 00000000000..e8adb3282b5
--- /dev/null
+++ b/jdk11.install
@@ -0,0 +1,50 @@
+THIS_JDK='java-11-jdk'
+
+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
+ "")
+ /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}" ]; 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
+ # Check JRE11 is still available
+ if [ -x /usr/lib/jvm/${THIS_JDK}/bin/java ]; then
+ /usr/bin/archlinux-java unset
+ fi
+ fi
+}
diff --git a/jshell.desktop b/jshell.desktop
new file mode 100644
index 00000000000..83fb1edf95e
--- /dev/null
+++ b/jshell.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Oracle Java 11 Shell
+Comment=Oracle Java 11 Shell
+Keywords=java;shell
+Exec=/usr/lib/jvm/java-11-jdk/bin/jshell
+Terminal=true
+Type=Application
+Icon=java11-jdk
+Categories=Application;System;