33 lines
934 B
Bash
33 lines
934 B
Bash
# Template file for 'just'
|
|
pkgname=just
|
|
version=1.29.1
|
|
revision=1
|
|
build_style=cargo
|
|
build_helper=qemu
|
|
make_check_args="-- --skip completions::bash" # requires git repo
|
|
checkdepends="python3"
|
|
short_desc="Just a command runner"
|
|
maintainer="cinerea0 <cinerea0@protonmail.com>"
|
|
license="CC0-1.0"
|
|
homepage="https://github.com/casey/just"
|
|
changelog="https://raw.githubusercontent.com/casey/just/master/CHANGELOG.md"
|
|
distfiles="https://github.com/casey/just/archive/refs/tags/${version}.tar.gz"
|
|
checksum=3e909245038295b6935448d48bb93418b4bc1b0b5621116d1568e12dd872512b
|
|
make_check=ci-skip # test fails when run as root
|
|
|
|
# Fix failing test
|
|
pre_check() {
|
|
export USER=void
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
_just="${DESTDIR}/usr/bin/just"
|
|
vtargetrun "${_just}" --man > just.1
|
|
vman just.1
|
|
for shell in bash fish zsh; do
|
|
vtargetrun "${_just}" --completions "${shell}" > "just.${shell}"
|
|
vcompletion "just.${shell}" "${shell}"
|
|
done
|
|
}
|