git » ripgrep-all.git » commit 60b1014

fix hardcode target flag

author moui0
2024-02-11 07:27:20 UTC
committer moui0
2024-02-11 07:27:20 UTC
parent 4f032d0a61afaae7dab56cb0cd19d20f33c7e1a4

fix hardcode target flag

PKGBUILD +1 -1

diff --git a/PKGBUILD b/PKGBUILD
index 15e5b53..c20b663 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,7 +28,7 @@ b2sums=('fc2618369c349fda5a78d3604b17b78788be73ce5925a5b6aa234627ccaa4b70dba8ded
 
 prepare() {
   cd ripgrep-all-${pkgver}
-  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
 }
 
 build() {