dayz-linux-gui-launcher/PKGBUILD
Jonas_Jones 0fbf4fd2cd added project structure
I think
2023-04-25 23:22:01 +02:00

28 lines
No EOL
637 B
Bash

# Maintainer: Jonas_Jones https://jonasjones.me
pkgname="dayz-linux-gui-launcher-git"
pkgver="0.0.1"
pkgrel=1
pkgdesc="A gui using the dayz-linux-cli-launcher"
arch=('any')
depends=("dayz-linux-cli-launcher")
makedepends=("cargo")
license=("Right to modify")
prepare() {
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
}