blob: 269229c6896301f2bb2328b6dd5f6938825fee16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Contributor: Chloe Kudryavtsev <toast@toastin.space>
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=watchexec
pkgver=1.11.1
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="a8695e6c23f06459279a6bb3b64dda0956b1a3072f2d067098b72b786cefc4e480e5be35b16b473095908dc371c69c75728c9e3c5fc3dee7ddc56f903049bf97 watchexec-1.11.1.tar.gz"
|