bottom: update to 0.6.1

Add completions (based on #29455 by zweimach).

By ericonr: use `-print -quit` instead of `|head -n1`.

Closes: #30778 [via git-merge-pr]
This commit is contained in:
FollieHiyuki 2021-05-10 13:11:55 +03:00 committed by Érico Nogueira
parent 1d659b6606
commit df9082f5e5

View file

@ -1,6 +1,6 @@
# Template file for 'bottom'
pkgname=bottom
version=0.5.7
version=0.6.1
revision=1
build_style=cargo
short_desc="Yet another cross-platform graphical process/system monitor"
@ -8,9 +8,17 @@ maintainer="Neel Chotai <neel@chot.ai>"
license="MIT"
homepage="https://github.com/ClementTsang/bottom"
distfiles="https://github.com/ClementTsang/bottom/archive/${version}.tar.gz"
checksum=49e01a2930d913dba2a1329389faddb4b3971a6b0c08f7482d2759475d5cc27c
checksum=aa9c26e7e8e1300e9827c098317efa28cc28ae8acabfdb12f14e4ba65f42a57c
post_install() {
vdoc README.md
vlicense LICENSE
# Completions are hidden deep the build tree
bash_completion=$(find ${wrksrc}/target -name btm.bash -print -quit)
vcompletion ${bash_completion} bash btm
fish_completion=$(find ${wrksrc}/target -name btm.fish -print -quit)
vcompletion ${fish_completion} fish btm
zsh_completion=$(find ${wrksrc}/target -name _btm -print -quit)
vcompletion ${zsh_completion} zsh btm
}