diff --git a/pkg.info b/pkg.info index 9807b6b..d762abf 100644 --- a/pkg.info +++ b/pkg.info @@ -1,12 +1,48 @@ name: openjdk-21 description: OpenJDK Java 21 version: 21.0.9+4 -revision: 3 +revision: 4 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", "jdk21", "libx11", "libxext", "libxrandr", "libxrender", "libxt", "libxtst", "zip", "unzip"] -provides: ["jre", "jre21", "jdk", "jdk21"] 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 + - jdk21 + - libx11 + - libxext + - libxrandr + - libxrender + - libxt + - libxtst + - zip + - unzip +provides: + - jre + - jre21 + - jdk + - jdk21 +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: a34604596394d879a6a64d2c2e5535e0844d29db36fec204689d95533e537754 diff --git a/source.sh b/source.sh index 0431483..c9a242a 100644 --- a/source.sh +++ b/source.sh @@ -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() {