Update PKGBUILD to follow Arch Linux Rust package guidelines
Based on https://wiki.archlinux.org/title/Rust_package_guidelines
This commit is contained in:
parent
5c4fdf7735
commit
f2b1350d22
1 changed files with 4 additions and 1 deletions
5
PKGBUILD
5
PKGBUILD
|
@ -14,11 +14,14 @@ sha256sums=('17d904c958303e69978e499d8f907794cb69086f77cc11953b19d03280c5551a')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$pkgname-$pkgver"
|
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() {
|
build() {
|
||||||
cd "$pkgname-$pkgver"
|
cd "$pkgname-$pkgver"
|
||||||
|
export RUSTUP_TOOLCHAIN=stable
|
||||||
|
export CARGO_TARGET_DIR=target
|
||||||
cargo build --frozen --release
|
cargo build --frozen --release
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue