mirror of
https://github.com/JonasunderscoreJones/dayz-linux-gui-launcher.git
synced 2025-10-23 01:09:18 +02:00
28 lines
No EOL
637 B
Bash
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"
|
|
} |