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 }