void-packages/srcpkgs/watchexec/template

24 lines
689 B
Bash

# Template file for 'watchexec'
pkgname=watchexec
version=1.22.3
revision=1
build_wrksrc="crates/cli"
build_style=cargo
short_desc="Executes commands in response to file modifications"
maintainer="cinerea0 <cinerea0@protonmail.com>"
license="Apache-2.0"
homepage="https://github.com/watchexec/watchexec"
distfiles="https://github.com/watchexec/watchexec/archive/refs/tags/v${version}.tar.gz"
checksum=698ed1dc178279594542f325b23f321c888c9c12c1960fe11c0ca48ba6edad76
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
XBPS_CROSS_RUSTFLAGS+=" -latomic"
fi
post_install() {
for shell in bash fish zsh; do
vcompletion ${wrksrc}/completions/${shell} ${shell}
done
vman ${wrksrc}/doc/watchexec.1
}