From fb0519b0120eeb17a89092d7ac162db860e0db1a Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 19 Nov 2025 17:58:00 +0200 Subject: [PATCH] Switch to new download format and fix dependencies --- pkg.info | 22 ++++++++++++++++++++-- source.sh | 17 ----------------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/pkg.info b/pkg.info index 5aa6a29..4187fd3 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,27 @@ name: wget description: Network utility to retrieve files from the Web version: 1.25.0 +revision: 2 url: https://www.gnu.org/software/wget/wget.html license: GPL3 architecture: any -depends: ["glibc","gnutls","libidn2","libpsl","nettle","pcre2","util-linux","zlib"] -optional_depends: ["make-ca","gperf","perl","python3"] type: source +depends: + - glibc + - gnutls + - libidn2 + - libpsl + - nettle + - pcre2 + - util-linux + - zlib +optional_depends: + - ca-certificates +make_depends: + - gperf + - perl +downloads: + - url: https://ftpmirror.gnu.org/gnu/wget/wget-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 766e48423e79359ea31e41db9e5c289675947a7fcf2efdcedb726ac9d0da3784 diff --git a/source.sh b/source.sh index 3324281..6d7dbe2 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://ftpmirror.gnu.org/gnu/wget/wget-${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() { @@ -19,13 +9,6 @@ build() { make } -# The check function is executed in the source directory -# This function is used to run tests to verify the package has been compiled correctly -# Temporarily disabled due to broken tests -#check() { - #make check -#} - # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() {