aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hwatch/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/hwatch/APKBUILD')
-rw-r--r--testing/hwatch/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/hwatch/APKBUILD b/testing/hwatch/APKBUILD
new file mode 100644
index 00000000000..31e593f79ce
--- /dev/null
+++ b/testing/hwatch/APKBUILD
@@ -0,0 +1,42 @@
+# 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
+arch="all !s390x"
+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
+"