mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-08 09:21:30 +01:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Contributor: Chloe Kudryavtsev <toast@toast.cafe>
|
|
# Maintainer: Chloe Kudryavtsev <toast@toast.cafe>
|
|
pkgname=watchexec
|
|
pkgver=1.14.1
|
|
pkgrel=1
|
|
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
|
|
"
|
|
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
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname"
|
|
install -Dm644 doc/"$pkgname".1 "$pkgdir"/usr/share/man/man1/"$pkgname".1
|
|
install -Dm644 "$builddir"/completions/zsh \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_watchexec
|
|
}
|
|
|
|
sha512sums="93cb5d2d34499f8214e5af2cad0491184d60e084b4729381a3fa73065612889519467f7977a96ffa8f8b4bebc82a0f453e3c62be2936903f5152e8ac1a061d73 watchexec-1.14.1.tar.gz"
|