# Contributor: omni # Maintainer: omni pkgname=kmon pkgver=1.6.3 pkgrel=2 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 cargo-auditable" subpackages="$pkgname-doc $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="$pkgname-$pkgver.tar.gz::https://github.com/orhun/kmon/archive/refs/tags/v$pkgver.tar.gz" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --release --frozen } check() { cargo test --frozen } package() { install -Dm0755 target/release/kmon -t "$pkgdir"/usr/bin install -Dm0644 target/man/kmon.8 "$pkgdir"/usr/share/man/man8/kmon.8 install -Dm0644 target/completions/kmon.bash \ "$pkgdir"/usr/share/bash-completion/completions/kmon install -Dm0644 target/completions/kmon.fish \ -t "$pkgdir"/usr/share/fish/vendor_completions.d install -Dm0644 target/completions/_kmon \ -t "$pkgdir"/usr/share/zsh/site-functions } sha512sums=" 03927ff5b3294d9aa52231bd4f5e359935fc1e109cca79e71c06229e09cfd34430cb44c53ce0e2eb12d6df6b7d3ea065306dc6b30b505503bf490943fa83f288 kmon-1.6.3.tar.gz "