diff --git a/pkg.info b/pkg.info index 4f29c43..6f6aa50 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,19 @@ name: netavark description: Container network stack -version: 1.16.1 +version: 1.17.0 +revision: 1 url: https://github.com/containers/netavark license: Apache-2.0 architecture: any -depends: ["gcc-libs", "glibc"] -make_depends: ["rustc", "protobuf-compiler"] type: source +depends: + - gcc-libs + - glibc +make_depends: + - rustc + - protobuf-compiler +downloads: + - url: https://github.com/containers/netavark/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: d26116f2a139dec8b14872a785eb928903341a79b9b0056bac89aa798245bde8 diff --git a/source.sh b/source.sh index 8b5d46a..a1ef2ae 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/containers/netavark/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" - cd "$BPM_SOURCE" cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" }