void-packages/srcpkgs/watchexec/template

23 lines
672 B
Bash

# Template file for 'watchexec'
pkgname=watchexec
version=1.21.1
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=c41a2215505be5a71ecca8d47f30c1de1f0db3644a0da844ca70bc1ed05a0be3
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
XBPS_CROSS_RUSTFLAGS+=" -latomic"
fi
post_install() {
vman ${wrksrc}/doc/watchexec.1
vcompletion ${wrksrc}/completions/zsh zsh
}