Update package version to 0.29.2

This commit is contained in:
2025-12-12 19:44:47 +02:00
parent 5b950b4f46
commit 2a376505a6
3 changed files with 21 additions and 12 deletions
+5 -2
View File
@@ -4,6 +4,9 @@
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')
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"/tags | jq -r '.[].name' | grep '^v' | head -n1)
echo "$TAG_NAME"
# Trim 'v' character in TAG_NAME variable
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
echo "$VERSION"
+14 -3
View File
@@ -1,9 +1,20 @@
name: cbindgen
description: A project for generating C bindings from Rust code
version: 0.29.0
version: 0.29.2
revision: 1
url: https://github.com/mozilla/cbindgen
license: MPL2
architecture: any
depends: ["gcc-libs", "glibc"]
make_depends: ["cmake","rustc","python-cython"]
type: source
depends:
- gcc-libs
- glibc
make_depends:
- cmake
- rustc
- python-cython
downloads:
- url: https://github.com/mozilla/cbindgen/archive/v${BPM_PKG_VERSION}/cbindgen-${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: c7d4d610482390c70e471a5682de714967e187ed2f92f2237c317a484a8c7e3a
+2 -7
View File
@@ -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/mozilla/cbindgen/archive/v${BPM_PKG_VERSION}/cbindgen-${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"
# Fetch dependencies
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
@@ -33,5 +27,6 @@ check() {
package() {
install -Dm755 target/release/cbindgen "$BPM_OUTPUT"/usr/bin/cbindgen
# Install package license
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/cbindgen/LICENSE
}