tweak pkgbuild according to the guidelines

This commit is contained in:
Hailey Somerville 2023-12-29 23:25:41 +11:00
parent b18bf28f36
commit c829a779f2

View file

@ -22,11 +22,11 @@ makedepends=("cargo")
arch=("x86_64")
prepare() {
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
export BARK_PKG_VERSION="$(pkgver)"
cargo build --frozen --release