mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 17:16:44 +02:00
43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=hwatch
|
|
pkgver=0.3.11
|
|
pkgrel=0
|
|
pkgdesc="A modern alternative to the watch command"
|
|
url="https://github.com/blacknon/hwatch"
|
|
# !s390x: nix crate
|
|
# !loongarch64: nix crate
|
|
arch="all !s390x !loongarch64"
|
|
license="MIT"
|
|
makedepends="cargo cargo-auditable"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="https://github.com/blacknon/hwatch/archive/refs/tags/$pkgver/hwatch-$pkgver.tar.gz"
|
|
# !check: no tests provided
|
|
# net: fetch dependencies
|
|
options="!check net"
|
|
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
}
|
|
|
|
package() {
|
|
install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/
|
|
install -D -m644 man/$pkgname.1 -t "$pkgdir"/usr/share/man/man1/
|
|
install -D -m644 completion/fish/* -t "$pkgdir"/usr/share/fish/vendor_completions.d/
|
|
install -D -m644 completion/zsh/* -t "$pkgdir"/usr/share/zsh/site-functions/
|
|
}
|
|
|
|
sha512sums="
|
|
71279a93a0bce62f08c00cd2a7ebcd787e17af1c0d35b7447fda657268faa31c0cd474a8ea3fc4ea988a68d8930dcfa0b9497d01431aee7433e79ecc64938630 hwatch-0.3.11.tar.gz
|
|
"
|