diff --git a/pkg.info b/pkg.info index 4d712de..104969e 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,18 @@ name: libconfig description: C/C++ library for processing configuration files -version: 1.8.1 +version: 1.8.2 +revision: 1 url: https://github.com/hyperrealm/libconfig license: LGPL2.1-only architecture: any -depends: ["gcc-libs", "glibc"] -make_depends: ["texinfo"] type: source +depends: + - gcc-libs + - glibc +make_depends: + - texinfo +downloads: + - url: https://github.com/hyperrealm/libconfig/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 8e71983761b08c65b15b769b3ec1d980036c461fdfd415c7183378a4b3eac8f4 diff --git a/source.sh b/source.sh index 430ca74..96bd4f5 100644 --- a/source.sh +++ b/source.sh @@ -2,15 +2,9 @@ # 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/hyperrealm/libconfig/archive/refs/tags/v${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 +# This function is used for putting downloaded files to the correct location or applying patches prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" - cd "$BPM_SOURCE" autoreconf -fi }