summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Severance2019-05-13 23:38:08 -0400
committerChris Severance2019-05-13 23:38:08 -0400
commit59bcfb4343f08c154ead31f4b7a231916ef11700 (patch)
treeabc683606d25e470ef195abd6a7f3a4345f250d8
parent4023c6bae6a165ab52c53a4b3d76e195150d2d37 (diff)
downloadaur-59bcfb4343f08c154ead31f4b7a231916ef11700.tar.gz
autu: Update to 11.0.3-1
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD138
-rwxr-xr-xreadme.sh15
3 files changed, 114 insertions, 58 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 967831be78f..ce88e7c2a06 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,8 @@
+# Generated by mksrcinfo v8
+# Tue May 14 03:38:08 UTC 2019
pkgbase = jdk11
- pkgdesc = Oracle Java Development Kit
- pkgver = 11.0.2
+ pkgdesc = Oracle Java 11 Development Kit
+ pkgver = 11.0.3
pkgrel = 1
url = https://www.oracle.com/java/
install = jdk11.install
@@ -13,18 +15,27 @@ pkgbase = jdk11
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 = manual://jdk-11.0.3_linux-x64_bin.tar.gz
source = java.desktop
source = jconsole.desktop
source = jshell.desktop
source = java_16.png
source = java_48.png
- sha256sums = 7b4fd8ffcf53e9ff699d964a80e4abf9706b5bdb5644a765c2b96f99e3a2cdc8
+ source = readme.sh
+ md5sums = 6d5fd10897d65e053bb69ed9a032211a
+ md5sums = 985d0d81ece57d0ea633ccc1d3fd78ed
+ md5sums = fbd4ddd9069e48a65da6e0cb33db9bc1
+ md5sums = e59149780f4d1124f6e339611da9c70b
+ md5sums = 6181f1ef1e5aeb637ef4cd593106beef
+ md5sums = 1db7eb33e844d1a41bce196ab622da40
+ md5sums = 4dda444d58a4d78ca6357228adbde8a2
+ sha256sums = d50908ea53c2ad154a797aa0930eafb7813247dae13d9d891116df889814ebf3
sha256sums = 1052634cdcbf50ca14b864b58f3afa53de1706bdc9c593667c29974146212c54
sha256sums = 9a84d1b4dd969e867b2dbb6df0d0c44814729e0f1d0c61ab6c54d676eae83b3b
sha256sums = 73d686fd6e478a887a51451d7ada7c045f31ce299f65f45e50a793820ee99d85
sha256sums = d27fec1d74f7a3081c3d175ed184d15383666dc7f02cc0f7126f11549879c6ed
sha256sums = 7cf8ca096e6d6e425b3434446b0835537d0fc7fe64b3ccba7a55f7bd86c7e176
+ sha256sums = d1b4b3161614d7620365a0528a86f7eec543de30ee756b1ad2dabd386e84f734
pkgname = jdk11
diff --git a/PKGBUILD b/PKGBUILD
index c72b43c1066..e3517046768 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,67 +1,97 @@
-# Maintainer : Daniel Bermond < gmail-com: danielbermond >
+# Maintainer: Chris Severance aur.severach AatT spamgourmet.com
+# Contributor: 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'
+set -u
+pkgname='jdk11'
+pkgver='11.0.3'; _build='12'; _hash='37f5e150db5247ab9333b11c1dddcd30'
+_major="${pkgver%%.*}"
+pkgrel='1'
+pkgdesc="Oracle Java ${_major} 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}")
+depends=('java-environment-common' "jre>=${_major}" "jre<$((_major + 1))" 'zlib' 'hicolor-icon-theme')
+provides=("java-environment=${_major}" "java-environment-jdk=${_major}")
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'
+_srcfil="jdk-${pkgver}_linux-x64_bin.tar.gz"
+source=(
+ "https://download.oracle.com/otn-pub/java/jdk/${pkgver}+${_build}/${_hash}/${_srcfil}"
+ 'java.desktop'
+ 'jconsole.desktop'
+ 'jshell.desktop'
+ 'java_16.png'
+ 'java_48.png'
+ 'readme.sh'
+)
+# from oracle-sqldeveloper
+DLAGENTS+=("manual::${startdir:-}/readme.sh %o %u")
+source[0]="manual://${_srcfil}"
+if [ -s ~/"Downloads/${_srcfil}" ] && [ ! -e "${_srcfil}" ]; then
+ if type msg > /dev/null 2>&1; then
+ set +u
+ msg "Scooping files from ~/Downloads"
+ msg2 "${_srcfil}"
+ set -u
+ ln -sr ~/"Downloads/${_srcfil}"
+ fi
+fi
+unset _srcfil
+md5sums=('6d5fd10897d65e053bb69ed9a032211a'
+ '985d0d81ece57d0ea633ccc1d3fd78ed'
+ 'fbd4ddd9069e48a65da6e0cb33db9bc1'
+ 'e59149780f4d1124f6e339611da9c70b'
+ '6181f1ef1e5aeb637ef4cd593106beef'
+ '1db7eb33e844d1a41bce196ab622da40'
+ '4dda444d58a4d78ca6357228adbde8a2')
+sha256sums=('d50908ea53c2ad154a797aa0930eafb7813247dae13d9d891116df889814ebf3'
'1052634cdcbf50ca14b864b58f3afa53de1706bdc9c593667c29974146212c54'
'9a84d1b4dd969e867b2dbb6df0d0c44814729e0f1d0c61ab6c54d676eae83b3b'
'73d686fd6e478a887a51451d7ada7c045f31ce299f65f45e50a793820ee99d85'
'd27fec1d74f7a3081c3d175ed184d15383666dc7f02cc0f7126f11549879c6ed'
- '7cf8ca096e6d6e425b3434446b0835537d0fc7fe64b3ccba7a55f7bd86c7e176')
-
-DLAGENTS=('https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -b oraclelicense=a -o %o %u')
+ '7cf8ca096e6d6e425b3434446b0835537d0fc7fe64b3ccba7a55f7bd86c7e176'
+ 'd1b4b3161614d7620365a0528a86f7eec543de30ee756b1ad2dabd386e84f734')
+
+PKGEXT='.pkg.tar.gz' # much faster than .xz
+
+DLAGENTS=("${DLAGENTS[@]// -gqb \"\"/ -gq}")
+DLAGENTS=("${DLAGENTS[@]//curl -/curl -b 'oraclelicense=a' -}")
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}"
+ set -u
+ cd "jdk-${pkgver}"
+
+ local _jvmdir="/usr/lib/jvm/java-${_major}-${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${_major}-jdk.desktop"
+ install -D -m644 "${srcdir}/jconsole.desktop" "${pkgdir}/usr/share/applications/jconsole-java${_major}-jdk.desktop"
+ install -D -m644 "${srcdir}/jshell.desktop" "${pkgdir}/usr/share/applications/jshell-java${_major}-jdk.desktop"
+ install -D -m644 "${srcdir}/java_16.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/java${_major}-jdk.png"
+ install -D -m644 "${srcdir}/java_48.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/java${_major}-jdk.png"
+
+ # legal/licenses
+ cp -a legal/* "${pkgdir}/usr/share/licenses/${pkgname}"
+ ln -s "${pkgname}" "${pkgdir}/usr/share/licenses/java${_major}-${pkgname}"
+ set +u
}
+set +u
diff --git a/readme.sh b/readme.sh
new file mode 100755
index 00000000000..b9aaf2237f8
--- /dev/null
+++ b/readme.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/bash
+
+echo 'The source file for this package needs to be downloaded manually'
+echo 'since it requires a login and is not redistributable.'
+echo 'Please visit'
+echo ' https://www.oracle.com/technetwork/java/javase/downloads/'
+echo ' Java SE ... JDK, Download v'
+echo 'and download'
+echo " ${1%.part}"
+echo 'to your ~/Downloads folder or in with the PKGBUILD.'
+echo ''
+echo 'Please do not post alternate sources. They are not legal. Advertising'
+echo 'will get them taken down by Oracle or too much traffic. Keep it a'
+echo 'secret.'
+exit 1