From 962301fdca95f5c4ee3a3960f0067ae2ce8f4c56 Mon Sep 17 00:00:00 2001 From: ngn Date: Tue, 20 Aug 2024 02:32:38 +0300 Subject: [PATCH] update: cbindgen 0.26.0 --- src/cbindgen/changes.md | 3 +++ src/cbindgen/pkg.sh | 23 +++++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/cbindgen/changes.md b/src/cbindgen/changes.md index e6fc77a..6c74bcc 100644 --- a/src/cbindgen/changes.md +++ b/src/cbindgen/changes.md @@ -1,2 +1,5 @@ +# 0.26.0 +Updated to latest upstream release + # 0.24.3 First version diff --git a/src/cbindgen/pkg.sh b/src/cbindgen/pkg.sh index 6152c9b..c857ca2 100644 --- a/src/cbindgen/pkg.sh +++ b/src/cbindgen/pkg.sh @@ -1,17 +1,20 @@ NAME="cbindgen" -DESC="Generate C bindings for Rust code." -VERSION="0.24.3" -FILES=("https://github.com/eqrion/cbindgen/archive/v$VERSION/cbindgen-$VERSION.tar.gz") -HASHES=("6aa2991ca8411f9ebf9961e8b873e884") -DEPENDS=() +DESC="Generate C bindings for rust code" +VERSION="0.26.0" + +FILES=("https://github.com/eqrion/cbindgen/archive/v${VERSION}/cbindgen-${VERSION}.tar.gz") +HASHES=("b45e1a64875b615702a86ac3084ef69ae32926241cd2b687a30c12474be15105") + +DEPENDS=("gcc-libs" "glibc") +BUILD=("cargo" "cmake" "python3") PACKAGE() { - tar xf $NAME-$VERSION.tar.gz - cd $NAME-$VERSION + tar xf "${NAME}-${VERSION}.tar.gz" + cd "${NAME}-${VERSION}" cargo build --release - mkdir -pv "$ROOTDIR/usr/bin" - install -Dm755 target/release/cbindgen "$ROOTDIR/usr/bin/" + mkdir -pv "${ROOTDIR}/usr/bin" + install -Dm755 target/release/cbindgen "${ROOTDIR}/usr/bin/" - cd .. && rm -r $NAME-$VERSION + cd .. && rm -r "${NAME}-${VERSION}" }