mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-19 23:02:19 +01:00
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
# Contributor: Chloe Kudryavtsev <toast@toast.cafe>
|
|
# Maintainer: Chloe Kudryavtsev <toast@toast.cafe>
|
|
pkgname=watchexec
|
|
pkgver=1.18.7
|
|
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'
|
|
checkdepends="bash"
|
|
subpackages="$pkgname-doc
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="https://github.com/watchexec/watchexec/archive/refs/tags/cli-v$pkgver.tar.gz"
|
|
builddir="$srcdir/watchexec-cli-v$pkgver"
|
|
|
|
case "$CARCH" in
|
|
arm*|aarch64|ppc64le)
|
|
# weirdly failing tests
|
|
options="$options !check"
|
|
;;
|
|
esac
|
|
|
|
export CARGO_HOME="$srcdir"/cargo
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --locked
|
|
}
|
|
|
|
build() {
|
|
cargo build \
|
|
--release \
|
|
--verbose \
|
|
--frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --all \
|
|
--release \
|
|
--verbose \
|
|
--frozen
|
|
}
|
|
|
|
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="
|
|
b3afc130d63767b0d5bd9120b22c8f462b758acc31db7fffccb27377471c4638294550404c89bef527ea938ab28d5800feca6cc375d994084ca66ef7754aabc0 cli-v1.18.7.tar.gz
|
|
"
|