Update PKGBUILD to follow Arch Linux Rust package guidelines

Based on https://wiki.archlinux.org/title/Rust_package_guidelines
This commit is contained in:
Gergő Sályi 2024-11-17 00:41:47 +01:00
parent 5c4fdf7735
commit f2b1350d22

View file

@ -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
}