mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
# Contributor: kpcyrd <git@rxv.cc>
|
|
# Maintainer: kpcyrd <git@rxv.cc>
|
|
pkgname=cargo-watch
|
|
pkgver=8.4.0
|
|
pkgrel=1
|
|
pkgdesc="Utility for Cargo to compile projects when sources change"
|
|
url="https://github.com/watchexec/cargo-watch"
|
|
# s390x and riscv64 blocked by cargo
|
|
arch="all !s390x !riscv64"
|
|
license="CC0-1.0"
|
|
makedepends="cargo"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-zsh-completion
|
|
"
|
|
options="net"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/watchexec/cargo-watch/archive/v$pkgver.tar.gz"
|
|
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
PATH="$PWD/target/release:$PATH" cargo test --release --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dm644 $pkgname.1 -t "$pkgdir"/usr/share/man/man1/
|
|
install -Dm644 completions/zsh "$pkgdir"/usr/share/zsh/site-functions/_$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
88c89e8a46e5ef63fc8f11df2de65c5d91f0f02aeba18e96f391da65c09c2c7f71494c49ed23a67bb2ed964f846da5ac779502fe99d13ac20435966d79b1c7d7 cargo-watch-8.4.0.tar.gz
|
|
"
|