aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoromni <omni+alpine@hack.org>2022-05-30 08:40:06 +0000
committeralice <alice@ayaya.dev>2022-05-30 10:32:33 +0000
commitc08e89c0d8eb2e47a8b4545736028354d904845b (patch)
treec49c54c392da8640b0524c16f7d585833b6ca94b
parent6a392be5559130233249dbe01303f3e4e416758f (diff)
downloadaports-c08e89c0d8eb2e47a8b4545736028354d904845b.tar.gz
aports-c08e89c0d8eb2e47a8b4545736028354d904845b.tar.bz2
aports-c08e89c0d8eb2e47a8b4545736028354d904845b.tar.xz
testing/kmon: new aport
-rw-r--r--testing/kmon/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/kmon/APKBUILD b/testing/kmon/APKBUILD
new file mode 100644
index 0000000000..347307a7c9
--- /dev/null
+++ b/testing/kmon/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: omni <omni+alpine@hack.org>
+# Maintainer: omni <omni+alpine@hack.org>
+pkgname=kmon
+pkgver=1.6.0
+pkgrel=0
+pkgdesc="Linux Kernel Manager and Activity Monitor"
+arch="all !s390x !riscv64" # limited by cargo
+url="https://kmon.cli.rs/"
+license="GPL-3.0-or-later"
+depends="kmod util-linux-misc" # dmesg
+makedepends="cargo python3 libxcb-dev"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/orhun/kmon/archive/refs/tags/v$pkgver.tar.gz"
+
+prepare() {
+ default_prepare
+ cargo fetch --locked
+}
+
+build() {
+ cargo build --release --frozen
+}
+
+check() {
+ cargo test --frozen
+}
+
+package() {
+ install -Dm0755 target/release/kmon -t "$pkgdir"/usr/bin
+ install -Dm0644 man/kmon.8 "$pkgdir"/usr/share/man/man8/kmon.8
+}
+
+sha512sums="
+3b40f19ed42a8f1c1f65fa3306a77b4861bc53191a878c2ec18dd36a4ed58aecb534a19e73aa5be3ed54b99f02ace1622b5b5e90353d1a2a055e83eccde81b76 kmon-1.6.0.tar.gz
+"