From f2b1350d22ea0e38ce2db691ca426f4ec63dadeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20S=C3=A1lyi?= Date: Sun, 17 Nov 2024 00:41:47 +0100 Subject: [PATCH] Update PKGBUILD to follow Arch Linux Rust package guidelines Based on https://wiki.archlinux.org/title/Rust_package_guidelines --- PKGBUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index ae7dae0..6a24675 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -14,11 +14,14 @@ sha256sums=('17d904c958303e69978e499d8f907794cb69086f77cc11953b19d03280c5551a') prepare() { cd "$pkgname-$pkgver" - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { cd "$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target cargo build --frozen --release }