# Contributor: Chloe Kudryavtsev # Maintainer: Chloe Kudryavtsev pkgname=watchexec pkgver=1.12.0 pkgrel=0 pkgdesc='Executes commands in response to file modifications' url='https://github.com/watchexec/watchexec' arch='x86_64 x86 armhf armv7 aarch64 ppc64le' # limited by rust/cargo license='Apache-2.0' makedepends='cargo' subpackages="$pkgname-doc $pkgname-zsh-completion:zshcomp:noarch" source="watchexec-$pkgver.tar.gz::https://github.com/watchexec/watchexec/archive/$pkgver.tar.gz" export CARGO_HOME="$srcdir"/cargo build() { cargo build \ --release \ --verbose } check() { cargo test --all \ --release \ --verbose } zshcomp() { depends="" pkgdesc="Zsh completion for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel zsh" install -Dm644 "$builddir"/completions/zsh \ "$subpkgdir"/usr/share/zsh/site-functions/_watchexec } package() { install -Dm755 target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname" install -Dm644 doc/"$pkgname".1 "$pkgdir"/usr/share/man/man1/"$pkgname".1 } sha512sums="71c93f926863c5fbda26fa69316c1ad8ee4d2afac1e89b1231f0b7b3879efe736304beb49865b9bbb5840e730f922b8a6ecc962c5893fbf5b734ce462f96e25b watchexec-1.12.0.tar.gz"