Update package version to 0.29.2
This commit is contained in:
+5
-2
@@ -4,6 +4,9 @@
|
|||||||
REPO="mozilla/cbindgen"
|
REPO="mozilla/cbindgen"
|
||||||
|
|
||||||
# Get tag name using Github Rest API
|
# 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"
|
||||||
|
|||||||
@@ -1,9 +1,20 @@
|
|||||||
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.29.0
|
version: 0.29.2
|
||||||
|
revision: 1
|
||||||
url: https://github.com/mozilla/cbindgen
|
url: https://github.com/mozilla/cbindgen
|
||||||
license: MPL2
|
license: MPL2
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["gcc-libs", "glibc"]
|
|
||||||
make_depends: ["cmake","rustc","python-cython"]
|
|
||||||
type: source
|
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,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 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
|
# 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
|
# 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() {
|
prepare() {
|
||||||
wget "$DOWNLOAD"
|
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
|
||||||
|
|
||||||
cd "$BPM_SOURCE"
|
cd "$BPM_SOURCE"
|
||||||
# Fetch dependencies
|
# Fetch dependencies
|
||||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||||
@@ -33,5 +27,6 @@ check() {
|
|||||||
package() {
|
package() {
|
||||||
install -Dm755 target/release/cbindgen "$BPM_OUTPUT"/usr/bin/cbindgen
|
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
|
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/cbindgen/LICENSE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user