diff --git a/pkg.info b/pkg.info index 03dcca5..d630a8d 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,16 @@ name: catch2 description: A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later -version: 3.10.0 -revision: 2 +version: 3.11.0 +revision: 1 url: https://github.com/catchorg/catch2 license: BSL1 architecture: any -make_depends: ["cmake","python3"] type: source +make_depends: + - cmake + - python3 +downloads: + - url: https://github.com/catchorg/Catch2/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz + extract_to_bpm_source: true + extract_strip_components: 1 + checksum: 82fa1cb59dc28bab220935923f7469b997b259eb192fb9355db62da03c2a3137 diff --git a/source.sh b/source.sh index 44d8e1e..dd4e5d2 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/catchorg/Catch2/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 -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() {