void-packages/srcpkgs/procs/template
2021-10-23 23:00:33 -03:00

28 lines
838 B
Bash

# Template file for 'procs'
pkgname=procs
version=0.11.10
revision=1
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 > procs.bash
vtargetrun ${PROCS} --completion fish > procs.fish
vtargetrun ${PROCS} --completion zsh > procs.zsh
}
post_install() {
vcompletion procs.bash bash
vcompletion procs.fish fish
vcompletion procs.zsh zsh
vlicense LICENSE
}