Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
chromebrew
Commits
5bae7fdc
Commit
5bae7fdc
authored
Aug 09, 2020
by
Casey Strouse
Committed by
GitHub
Aug 09, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4201 from uberhacker/update-jdk8-package
Update jdk8 from 8u251 to 8u261
parents
bdc6e9e8
3a065d9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
packages/jdk8.rb
packages/jdk8.rb
+15
-15
No files found.
packages/jdk8.rb
View file @
5bae7fdc
...
...
@@ -2,23 +2,23 @@ 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
'8u2
5
1'
homepage
'http
s://www.oracle.com/java/technologies/javase/javase-jdk8-downloads
.html'
version
'8u2
6
1'
compatibility
'all'
source_url
'https://hg.openjdk.java.net/jdk8/jdk8/archive/2a8f4c022aa0.tar.gz'
source_sha256
'e632ae353ccfb90957cbb6a5818ee063710a41e7b97b490ee58ca5f627d863f1'
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u2
5
1-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u2
5
1-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u2
5
1-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u2
5
1-chromeos-x86_64.tar.xz'
,
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u2
6
1-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u2
6
1-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u2
6
1-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/jdk8-8u2
6
1-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'
48a902d3754e13d38b0dc91e1ecb199569bf3f14bba2d6abf47263b16626d1f6
'
,
armv7l:
'
48a902d3754e13d38b0dc91e1ecb199569bf3f14bba2d6abf47263b16626d1f6
'
,
i686:
'
0402ad1e6e49a27ad1e0a0247bb5f52597f942131f05e05534037ec21181b66e
'
,
x86_64:
'
cdf85676c12bf441bfb68ebdec8fc608ce6cb4420788b482ebc9c4a4260f4abd
'
,
aarch64:
'
db6d59a9b314d88444d15a9bc17ae8878903a828497d3e7a13e12ad84185cab3
'
,
armv7l:
'
db6d59a9b314d88444d15a9bc17ae8878903a828497d3e7a13e12ad84185cab3
'
,
i686:
'
471d97fe4a511bd953b7efede056f283b4d1ddc195f92024998854f4caab1bd5
'
,
x86_64:
'
ddd85fbc3e20f6a1e9418b06e947f876dc9a8173125b5b2e2e8c9d4017a001e0
'
,
})
def
self
.
install
...
...
@@ -36,7 +36,7 @@ class Jdk8 < Package
puts
"Oracle now requires an account to download the JDK."
.
orange
puts
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
"http
s://www.oracle.com/java/technologies/javase/javase-jdk8-downloads
.html"
.
orange
puts
puts
"Download the JDK for your architecture to
#{
HOME
}
/Downloads to continue."
.
orange
puts
...
...
@@ -44,18 +44,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"
)
)
==
'
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"
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"
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"
end
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/bin"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/share/jdk8"
FileUtils
.
cd
'jdk1.8.0_2
5
1'
do
FileUtils
.
cd
'jdk1.8.0_2
6
1'
do
FileUtils
.
rm_f
'src.zip'
FileUtils
.
cp_r
Dir
.
glob
(
'*'
),
"
#{
CREW_DEST_PREFIX
}
/share/jdk8/"
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment