void-packages/srcpkgs/ouch/template

29 lines
736 B
Bash

# Template file for 'ouch'
pkgname=ouch
version=0.4.1
revision=1
build_style=cargo
makedepends="liblzma-devel bzip2-devel libzip-devel"
short_desc="CLI utility for easily compressing and decompressing files and dirs"
maintainer="Savoy <savoy@liberation.red>"
license="MIT"
homepage="https://github.com/ouch-org/ouch"
distfiles="https://github.com/ouch-org/ouch/archive/refs/tags/${version}.tar.gz"
checksum=b0fcd6bbe6c66544b5bf1167d72605427c5cc6afae564f23f3eff5ea22b01b79
pre_build() {
export OUCH_ARTIFACTS_FOLDER=artifacts
}
post_install() {
vlicense LICENSE
vcompletion "artifacts/_ouch" zsh
vcompletion "artifacts/ouch.fish" fish
vcompletion "artifacts/ouch.bash" bash
for page in artifacts/*.1; do
vman ${page}
done
}