diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..9a120a8 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +URL="ftp://ftp.gnu.org/gnu/findutils/" + +# Get version number from FTP server +VERSION=$(curl -s --list-only "$URL" | grep -E '^findutils-[0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?.tar.xz$' | cut -d '-' -f2 | sort -V | tail -n1) + +# Remove '.tar.gz' suffix from VERSION variable +VERSION=${VERSION//.tar.xz/} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 97e993c..c929d9c 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: findutils description: File locating utilities -version: 4.9.0 -revision: 3 +version: 4.10.0 url: https://www.gnu.org/software/findutils/ license: GPL3-or-later architecture: any diff --git a/source.sh b/source.sh index 3f9465e..48df5c3 100644 --- a/source.sh +++ b/source.sh @@ -2,7 +2,7 @@ # 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://ftp.gnu.org/gnu/findutils/findutils-${BPM_PKG_VERSION}.tar.xz" +DOWNLOAD="https://ftpmirror.gnu.org/gnu/findutils/findutils-${BPM_PKG_VERSION}.tar.xz" FILENAME="${DOWNLOAD##*/}" # The prepare function is executed in the root of the temp directory