David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
cargo-cyclonedx


Commits:
051f6870 by Acid Xeon at 2024-02-24T18:31:49+08:00
Get target architecture for fetching sources more generically

>From https://wiki.archlinux.org/title/Rust_package_guidelines#Prepare

This allows other architectures to fetch sources with cargo without a patch.

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -21,7 +21,7 @@ 
b2sums=('c1907710867b3c1342cc5c9661a095c5c4f62c52a8284eccba8ff71398d933667924df6
 prepare() {
   cd $_upstream_name-$pkgname-$pkgver
   export RUSTUP_TOOLCHAIN=stable
-  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
 }
 
 build() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-cyclonedx/-/commit/051f68705628103732292faefc2f902278488ba1

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-cyclonedx/-/commit/051f68705628103732292faefc2f902278488ba1
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to