update: cbindgen 0.26.0

This commit is contained in:
ngn 2024-08-20 02:32:38 +03:00
parent 5d53e1574d
commit 962301fdca
2 changed files with 16 additions and 10 deletions

View File

@ -1,2 +1,5 @@
# 0.26.0
Updated to latest upstream release
# 0.24.3 # 0.24.3
First version First version

View File

@ -1,17 +1,20 @@
NAME="cbindgen" NAME="cbindgen"
DESC="Generate C bindings for Rust code." DESC="Generate C bindings for rust code"
VERSION="0.24.3" VERSION="0.26.0"
FILES=("https://github.com/eqrion/cbindgen/archive/v$VERSION/cbindgen-$VERSION.tar.gz")
HASHES=("6aa2991ca8411f9ebf9961e8b873e884") FILES=("https://github.com/eqrion/cbindgen/archive/v${VERSION}/cbindgen-${VERSION}.tar.gz")
DEPENDS=() HASHES=("b45e1a64875b615702a86ac3084ef69ae32926241cd2b687a30c12474be15105")
DEPENDS=("gcc-libs" "glibc")
BUILD=("cargo" "cmake" "python3")
PACKAGE() { PACKAGE() {
tar xf $NAME-$VERSION.tar.gz tar xf "${NAME}-${VERSION}.tar.gz"
cd $NAME-$VERSION cd "${NAME}-${VERSION}"
cargo build --release cargo build --release
mkdir -pv "$ROOTDIR/usr/bin" mkdir -pv "${ROOTDIR}/usr/bin"
install -Dm755 target/release/cbindgen "$ROOTDIR/usr/bin/" install -Dm755 target/release/cbindgen "${ROOTDIR}/usr/bin/"
cd .. && rm -r $NAME-$VERSION cd .. && rm -r "${NAME}-${VERSION}"
} }