Commit 5ebb5740 authored by Ed Reel's avatar Ed Reel Committed by GitHub

Update jdk8 from 8u231 to 8u241 (#4002)

Add pre-built binaries
parent 5555662a
......@@ -3,21 +3,21 @@ require 'package'
class Jdk8 < Package
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'
version '8u231'
version '8u241'
source_url 'http://hg.openjdk.java.net/jdk8/jdk8/archive/2a8f4c022aa0.tar.gz'
source_sha256 'e632ae353ccfb90957cbb6a5818ee063710a41e7b97b490ee58ca5f627d863f1'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u231-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u231-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u231-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u231-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u241-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u241-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u241-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u241-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'b1545e8466aa05973583073f188568de7a4a616d274fb182b9a7efdf93fd73c9',
armv7l: 'b1545e8466aa05973583073f188568de7a4a616d274fb182b9a7efdf93fd73c9',
i686: '726d24cd9b6ec72fbec739e3474a7fab8f9b339e561b2969db285ae2abc89cf4',
x86_64: '700c529caabc581218321af52bad08e40d2c7266437491fcb6519937b5afa65d',
aarch64: '5bfd4dca164d614b07b68de4872fe4a5083d1a1749ad67bacc4489115cb7111f',
armv7l: '5bfd4dca164d614b07b68de4872fe4a5083d1a1749ad67bacc4489115cb7111f',
i686: '389af1ea1cbe6a62e379e3d333b8deb36b10edf81663f60d75e39407b769481e',
x86_64: '04accb5c208b239c27bad854e2f5571777cf4adb25a5c3f3e6c4a858d5c2833f',
})
def self.install
......@@ -43,18 +43,18 @@ class Jdk8 < Package
end
case ARCH
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") ) == '8e864e5a7538a1d3f8b1e7077a9c5d3501ba9866c2f14c2b8204582f9fc76d9d'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{HOME}/Downloads/jdk-#{version}-linux-arm32-vfp-hflt.tar.gz") ) == '4470cc89f78d31b173fc1cc1b2a39e15c9a31ebfae7c003777df928643f45fde'
system "tar xvf #{HOME}/Downloads/jdk-#{version}-linux-arm32-vfp-hflt.tar.gz"
when 'i686'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{HOME}/Downloads/jdk-#{version}-linux-i586.tar.gz") ) == '875207cd152b6c445234b20c2b5824b6a736b659eb8aab83f2a107a179d198a5'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{HOME}/Downloads/jdk-#{version}-linux-i586.tar.gz") ) == 'e4f901999e5930c1e7606d08a1ebde0ed31d841dae3106a0def823bf5ce431da'
system "tar xvf #{HOME}/Downloads/jdk-#{version}-linux-i586.tar.gz"
when 'x86_64'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{HOME}/Downloads/jdk-#{version}-linux-x64.tar.gz") ) == 'a011584a2c9378bf70c6903ef5fbf101b30b08937441dc2ec67932fb3620b2cf'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("#{HOME}/Downloads/jdk-#{version}-linux-x64.tar.gz") ) == '419d32677855f676076a25aed58e79432969142bbd778ff8eb57cb618c69e8cb'
system "tar xvf #{HOME}/Downloads/jdk-#{version}-linux-x64.tar.gz"
end
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/jdk8"
FileUtils.cd 'jdk1.8.0_231' do
FileUtils.cd 'jdk1.8.0_241' do
FileUtils.rm_f 'src.zip'
FileUtils.cp_r Dir.glob('*'), "#{CREW_DEST_PREFIX}/share/jdk8/"
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