-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
template
32 lines (30 loc) · 934 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Template file for 'just'
pkgname=just
version=1.36.0
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 <[email protected]>"
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=bc2e2ff0268c2818659c524b21663564864b50ba102afb0a44fe73c08cf35ff0
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
}