diff --git a/pkg.info b/pkg.info index b9f5db6..ad1e092 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,15 @@ name: golang description: The GO programming language -version: 1.25.1 +version: 1.25.2 +revision: 1 url: https://go.dev/ license: BSD-3-Clause architecture: any -make_depends: ["golang"] type: source +make_depends: + - golang +downloads: + - url: https://go.dev/dl/go${BPM_PKG_VERSION}.src.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 3711140cfb87fce8f7a13f7cd860df041e6c12f7610f40cac6ec6fa2b65e96e4 diff --git a/source.sh b/source.sh index 24ba676..e7dd75f 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://go.dev/dl/go${BPM_PKG_VERSION}.src.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() {