From fb6d3569d523f396c5fc13d6c21eafe390f6e418 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Tue, 28 Oct 2025 10:41:34 +0200 Subject: [PATCH] Switch to new download format --- pkg.info | 10 +++++++++- source.sh | 8 +------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pkg.info b/pkg.info index af1fa6b..42e4940 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,16 @@ name: cargo-about description: Cargo plugin to generate list of all licenses for a crate version: 0.8.2 +revision: 2 url: https://github.com/EmbarkStudios/cargo-about license: Apache-2.0,MIT architecture: any -depends: ["rustc", "gcc-libs"] type: source +depends: + - rustc + - gcc-libs +downloads: + - url: https://github.com/EmbarkStudios/cargo-about/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: f12d67fb4ed585ee3406e73eebb9c5f11823fd9f00627e407e74636789201d93 diff --git a/source.sh b/source.sh index 4ba34b0..6e7bd77 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/EmbarkStudios/cargo-about/archive/refs/tags/${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" cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" }