George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / 
ot-keys


Commits:
d943ed9c by Acid Xeon at 2024-11-20T11:30:52+00: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
=====================================
@@ -45,7 +45,7 @@ 
b2sums=('705b1da1c587118e11a4554f5abca7105210ad73656d27cc478fee2534830331a429bfd
 
 prepare() {
   # download dependencies
-  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/ot-keys/-/commit/d943ed9cdd2e4183f7cfd612f1c6354afc2f651e

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/ot-keys/-/commit/d943ed9cdd2e4183f7cfd612f1c6354afc2f651e
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to