From 5b950b4f469ddc891b22ffa9e8b9f122e53b69e8 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Tue, 9 Sep 2025 17:22:56 +0300 Subject: [PATCH] Update package version to 0.29.0 --- check-version.sh | 9 +++++++++ pkg.info | 5 ++--- source.sh | 8 ++++++-- 3 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..42b837d --- /dev/null +++ b/check-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Github repository +REPO="mozilla/cbindgen" + +# Get tag name using Github Rest API +TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name') + +echo "$TAG_NAME" diff --git a/pkg.info b/pkg.info index bc16501..cdf7ed2 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,9 @@ name: cbindgen description: A project for generating C bindings from Rust code -version: 0.27.0 -revision: 2 +version: 0.29.0 url: https://github.com/mozilla/cbindgen license: MPL2 architecture: any depends: ["gcc-libs", "glibc"] -make_depends: ["rustc"] +make_depends: ["cmake","rustc","python-cython"] type: source diff --git a/source.sh b/source.sh index 40c1505..df2b5c7 100644 --- a/source.sh +++ b/source.sh @@ -10,18 +10,22 @@ FILENAME="${DOWNLOAD##*/}" prepare() { wget "$DOWNLOAD" tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" + + cd "$BPM_SOURCE" + # Fetch dependencies + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } # The build function is executed in the source directory # This function is used to compile the source code build() { - cargo build --release + cargo build --release --frozen } # The check function is executed in the source directory # This function is used to run tests to verify the package has been compiled correctly check() { - cargo test | true + RUSTC_BOOTSTRAP=1 cargo test --release --frozen } # The package function is executed in the source directory