# Template file for 'watchexec'
pkgname=watchexec
version=1.19.0
revision=1
wrksrc="${pkgname}-cli-v${version}"
build_wrksrc="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/cli-v${version}.tar.gz"
checksum=6837dff4d14802e1e3714a2f3ef4330f8faadd10449508b128cff7f93d921101

if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
	makedepends+=" libatomic-devel"
	XBPS_CROSS_RUSTFLAGS+=" -latomic"
fi

post_install() {
	vdoc ../README.md
	vman ../doc/watchexec.1
	vcompletion ../completions/zsh zsh
}
