Fix dependencies and switch to new download format
This commit is contained in:
@@ -1,11 +1,48 @@
|
||||
name: openjdk-17
|
||||
description: OpenJDK Java 17
|
||||
version: 17.0.17+8
|
||||
revision: 2
|
||||
url: https://openjdk.org/
|
||||
license: GPL2-only WITH Classpath-exception-2.0
|
||||
architecture: any
|
||||
depends: ["freetype2", "gcc-libs", "glibc", "harfbuzz", "hicolor-icon-theme", "lcms2", "libelf", "libjpeg-turbo", "libpng", "nss"]
|
||||
optional_depends: ["alsa-lib", "gtk3", "tide-java-utils"]
|
||||
make_depends: ["alsa-lib", "bash", "cpio", "cups", "giflib", "jdk17", "libx11", "libxext", "libxrandr", "libxrender", "libxt", "libxtst", "zip", "unzip"]
|
||||
provides: ["jre", "jre17", "jdk", "jdk17"]
|
||||
type: source
|
||||
depends:
|
||||
- freetype2
|
||||
- gcc-libs
|
||||
- glibc
|
||||
- harfbuzz
|
||||
- hicolor-icon-theme
|
||||
- lcms2
|
||||
- libelf
|
||||
- libjpeg-turbo
|
||||
- libpng
|
||||
- nss
|
||||
- tide-java-utils
|
||||
optional_depends:
|
||||
- alsa-lib
|
||||
- gtk3
|
||||
make_depends:
|
||||
- alsa-lib
|
||||
- bash
|
||||
- cpio
|
||||
- cups
|
||||
- giflib
|
||||
- jdk17
|
||||
- libx11
|
||||
- libxext
|
||||
- libxrandr
|
||||
- libxrender
|
||||
- libxt
|
||||
- libxtst
|
||||
- zip
|
||||
- unzip
|
||||
provides:
|
||||
- jre
|
||||
- jre17
|
||||
- jdk
|
||||
- jdk17
|
||||
downloads:
|
||||
- url: https://github.com/openjdk/jdk${BPM_PKG_VERSION%%.*}u/archive/jdk-${BPM_PKG_VERSION}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: f62e9d07df29a83b2133f13896e84488196ecd4a53b8ac3c1a87ab11d9d09437
|
||||
|
||||
@@ -2,16 +2,6 @@
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
DOWNLOAD="https://github.com/openjdk/jdk${BPM_PKG_VERSION%%.*}u/archive/jdk-${BPM_PKG_VERSION}.tar.gz"
|
||||
FILENAME="${DOWNLOAD##*/}"
|
||||
|
||||
# The prepare function is executed in the root of the temp directory
|
||||
# This function is used for downloading files and putting them into the correct location
|
||||
prepare() {
|
||||
wget "$DOWNLOAD"
|
||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||
}
|
||||
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
|
||||
Reference in New Issue
Block a user