Update package version to 0.29.0
This commit is contained in:
@@ -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"
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user