Commit 3a065d9c authored by Ed Reel's avatar Ed Reel

Update jdk8 from 8u251 to 8u261

parent bdc6e9e8
...@@ -2,23 +2,23 @@ require 'package' ...@@ -2,23 +2,23 @@ require 'package'
class Jdk8 < Package class Jdk8 < Package
description 'The JDK is a development environment for building applications, applets, and components using the Java programming language.' description 'The JDK is a development environment for building applications, applets, and components using the Java programming language.'
homepage 'http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html' homepage 'https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html'
version '8u251' version '8u261'
compatibility 'all' compatibility 'all'
source_url 'https://hg.openjdk.java.net/jdk8/jdk8/archive/2a8f4c022aa0.tar.gz' source_url 'https://hg.openjdk.java.net/jdk8/jdk8/archive/2a8f4c022aa0.tar.gz'
source_sha256 'e632ae353ccfb90957cbb6a5818ee063710a41e7b97b490ee58ca5f627d863f1' source_sha256 'e632ae353ccfb90957cbb6a5818ee063710a41e7b97b490ee58ca5f627d863f1'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u251-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u261-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u251-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u261-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u251-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u261-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u251-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u261-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '48a902d3754e13d38b0dc91e1ecb199569bf3f14bba2d6abf47263b16626d1f6', aarch64: 'db6d59a9b314d88444d15a9bc17ae8878903a828497d3e7a13e12ad84185cab3',
armv7l: '48a902d3754e13d38b0dc91e1ecb199569bf3f14bba2d6abf47263b16626d1f6', armv7l: 'db6d59a9b314d88444d15a9bc17ae8878903a828497d3e7a13e12ad84185cab3',
i686: '0402ad1e6e49a27ad1e0a0247bb5f52597f942131f05e05534037ec21181b66e', i686: '471d97fe4a511bd953b7efede056f283b4d1ddc195f92024998854f4caab1bd5',
x86_64: 'cdf85676c12bf441bfb68ebdec8fc608ce6cb4420788b482ebc9c4a4260f4abd', x86_64: 'ddd85fbc3e20f6a1e9418b06e947f876dc9a8173125b5b2e2e8c9d4017a001e0',
}) })
def self.install def self.install
...@@ -36,7 +36,7 @@ class Jdk8 < Package ...@@ -36,7 +36,7 @@ class Jdk8 < Package
puts "Oracle now requires an account to download the JDK.".orange puts "Oracle now requires an account to download the JDK.".orange
puts puts
puts "You must login at https://login.oracle.com/oaam_server/login.do and then visit:".orange puts "You must login at https://login.oracle.com/oaam_server/login.do and then visit:".orange
puts "http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html".orange puts "https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html".orange
puts puts
puts "Download the JDK for your architecture to #{HOME}/Downloads to continue.".orange puts "Download the JDK for your architecture to #{HOME}/Downloads to continue.".orange
puts puts
...@@ -44,18 +44,18 @@ class Jdk8 < Package ...@@ -44,18 +44,18 @@ class Jdk8 < Package
end end
case ARCH case ARCH
when 'aarch64', 'armv7l' when 'aarch64', 'armv7l'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{HOME}/Downloads/jdk-#{version}-linux-arm32-vfp-hflt.tar.gz") ) == 'f1b0c979e1b61ec52ebd5e1d0b754d7681d8623b09ac90c69718a553ef9b0cd1' abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{HOME}/Downloads/jdk-#{version}-linux-arm32-vfp-hflt.tar.gz") ) == 'e9364badce5ce65e5bbc3f176e64c678a68650bdb03b0be702493ee7ff81b18d'
system "tar xvf #{HOME}/Downloads/jdk-#{version}-linux-arm32-vfp-hflt.tar.gz" system "tar xvf #{HOME}/Downloads/jdk-#{version}-linux-arm32-vfp-hflt.tar.gz"
when 'i686' when 'i686'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{HOME}/Downloads/jdk-#{version}-linux-i586.tar.gz") ) == '0c6d25c09459e435570204f1a22a1cb765ce5d62c5bced92c9a9546b7be337f2' abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{HOME}/Downloads/jdk-#{version}-linux-i586.tar.gz") ) == 'f54a778bde277a5d1c2d9021949b05fcd7add69893672449437594581a1481ae'
system "tar xvf #{HOME}/Downloads/jdk-#{version}-linux-i586.tar.gz" system "tar xvf #{HOME}/Downloads/jdk-#{version}-linux-i586.tar.gz"
when 'x86_64' when 'x86_64'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{HOME}/Downloads/jdk-#{version}-linux-x64.tar.gz") ) == '777a8d689e863275a647ae52cb30fd90022a3af268f34fc5b9867ce32f1b374e' abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{HOME}/Downloads/jdk-#{version}-linux-x64.tar.gz") ) == '5a04e01a091f6b1ed9c0b801be4fd10689af07eeb9e27f012c9aa3af9948ea34'
system "tar xvf #{HOME}/Downloads/jdk-#{version}-linux-x64.tar.gz" system "tar xvf #{HOME}/Downloads/jdk-#{version}-linux-x64.tar.gz"
end end
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin" FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/jdk8" FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/jdk8"
FileUtils.cd 'jdk1.8.0_251' do FileUtils.cd 'jdk1.8.0_261' do
FileUtils.rm_f 'src.zip' FileUtils.rm_f 'src.zip'
FileUtils.cp_r Dir.glob('*'), "#{CREW_DEST_PREFIX}/share/jdk8/" FileUtils.cp_r Dir.glob('*'), "#{CREW_DEST_PREFIX}/share/jdk8/"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment