From 23e012172d7d16cce4e67fee5bb5e2d6be472f04 Mon Sep 17 00:00:00 2001 From: Luis Date: Tue, 30 May 2023 05:01:45 +0000 Subject: [PATCH] cbindgen: update to 0.24.5 --- main/cbindgen/.checksums | 2 +- main/cbindgen/.pkgfiles | 2 +- main/cbindgen/spkgbuild | 11 +++-------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/main/cbindgen/.checksums b/main/cbindgen/.checksums index 9308d384f..c0d023cc2 100644 --- a/main/cbindgen/.checksums +++ b/main/cbindgen/.checksums @@ -1 +1 @@ -6aa2991ca8411f9ebf9961e8b873e884 cbindgen-0.24.3.tar.gz +fc84a1f57822f39714f633a3639d2de9 cbindgen-0.24.5.tar.gz diff --git a/main/cbindgen/.pkgfiles b/main/cbindgen/.pkgfiles index 3e18b0093..ea63a40e7 100644 --- a/main/cbindgen/.pkgfiles +++ b/main/cbindgen/.pkgfiles @@ -1,4 +1,4 @@ -cbindgen-0.24.3-1 +cbindgen-0.24.5-1 drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/bin/ -rwxr-xr-x root/root usr/bin/cbindgen diff --git a/main/cbindgen/spkgbuild b/main/cbindgen/spkgbuild index a90850e0e..30063597d 100644 --- a/main/cbindgen/spkgbuild +++ b/main/cbindgen/spkgbuild @@ -2,21 +2,16 @@ # depends : rust name=cbindgen -version=0.24.3 +version=0.24.5 release=1 source="https://github.com/eqrion/$name/archive/v$version/$name-$version.tar.gz" build() { - export CARGO_HOME="$PWD/cargo" - mkdir -p $CARGO_HOME - - XARCH=${XARCH:-x86_64} - - _target="$XARCH-unknown-linux-gnu" cd $name-$version - cargo fetch --locked --target $_target + cargo fetch --target x86_64-unknown-linux-gnu cargo build --release --frozen --all-targets + mkdir -p $PKG/usr/bin/ install -Dm755 target/release/cbindgen $PKG/usr/bin/ }