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
|
name: cbindgen
|
||||||
description: A project for generating C bindings from Rust code
|
description: A project for generating C bindings from Rust code
|
||||||
version: 0.27.0
|
version: 0.29.0
|
||||||
revision: 2
|
|
||||||
url: https://github.com/mozilla/cbindgen
|
url: https://github.com/mozilla/cbindgen
|
||||||
license: MPL2
|
license: MPL2
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["gcc-libs", "glibc"]
|
depends: ["gcc-libs", "glibc"]
|
||||||
make_depends: ["rustc"]
|
make_depends: ["cmake","rustc","python-cython"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -10,18 +10,22 @@ FILENAME="${DOWNLOAD##*/}"
|
|||||||
prepare() {
|
prepare() {
|
||||||
wget "$DOWNLOAD"
|
wget "$DOWNLOAD"
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
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
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
cargo build --release
|
cargo build --release --frozen
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
check() {
|
||||||
cargo test | true
|
RUSTC_BOOTSTRAP=1 cargo test --release --frozen
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
|
|||||||
Reference in New Issue
Block a user