# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=just pkgver=1.14.0 pkgrel=1 pkgdesc="Just a command runner" url="https://github.com/casey/just" # riscv64: rust currently broken on this arch # s390x: blocked by nix crate arch="all !riscv64 !s390x" license="CC0-1.0" checkdepends="bash fzf" makedepends="cargo cargo-auditable" subpackages=" $pkgname-doc $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="https://github.com/casey/just/archive/$pkgver/just-$pkgver.tar.gz" export CARGO_PROFILE_RELEASE_OPT_LEVEL="z" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --release --frozen } check() { # Skipped tests are somehow broken. cargo test --frozen -- \ --skip choose::default \ --skip edit::editor_precedence \ --skip functions::env_var_functions } package() { install -D -m755 target/release/just -t "$pkgdir"/usr/bin/ install -D -m644 man/just.1 -t "$pkgdir"/usr/share/man/man1/ install -D -m644 completions/just.bash \ "$pkgdir"/usr/share/bash-completion/completions/$pkgname install -D -m644 completions/just.fish \ "$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish install -D -m644 completions/just.zsh \ "$pkgdir"/usr/share/zsh/site-functions/_$pkgname } sha512sums=" f16ea719a70fde4e50b7e01f6bb1f6c241f2d0eddefa94c1d72593995c69eac40466a30e4767d90718248b1a9488eaee23a089b8e27230c8e777d60a693c363b just-1.14.0.tar.gz "