void-packages/srcpkgs/procs/template
Daniel Lewan ccf6000424 procs: fix completion
Procs prepend generated completion with following string if stdout
of procs --completion is redirected to file:

    completion file is generated: ./procs.bash
2021-11-09 11:44:48 -03:00

29 lines
797 B
Bash

# Template file for 'procs'
pkgname=procs
version=0.11.10
revision=2
build_style=cargo
build_helper=qemu
short_desc="Modern replacement for ps written in Rust"
maintainer="travankor <travankor@tuta.io>"
license="MIT"
homepage="https://github.com/dalance/procs"
changelog="https://raw.githubusercontent.com/dalance/procs/master/CHANGELOG.md"
distfiles="https://github.com/dalance/procs/archive/refs/tags/v${version}.tar.gz"
checksum=e6a869722181f2122a5a223517a2d1f6505d19b8b9d46ffd59c61fb02f472403
post_build() {
PROCS="target/${RUST_TARGET}/release/procs"
vtargetrun ${PROCS} --completion bash
vtargetrun ${PROCS} --completion fish
vtargetrun ${PROCS} --completion zsh
}
post_install() {
vcompletion procs.bash bash
vcompletion procs.fish fish
vcompletion _procs zsh
vlicense LICENSE
}