diff options
Diffstat (limited to 'community/bottom/APKBUILD')
-rw-r--r-- | community/bottom/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/community/bottom/APKBUILD b/community/bottom/APKBUILD new file mode 100644 index 00000000000..22260face01 --- /dev/null +++ b/community/bottom/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: guddaff <guddaff@protonmail.com> +# Maintainer: guddaff <guddaff@protonmail.com> +pkgname=bottom +pkgver=0.9.6 +pkgrel=0 +pkgdesc="Graphical process/system monitor with a customizable interface" +url="https://github.com/ClementTsang/bottom" +# s390x: fails to build nix crate +arch="all !s390x" +license="MIT" +makedepends="cargo cargo-auditable" +subpackages=" + $pkgname-fish-completion + $pkgname-bash-completion + $pkgname-zsh-completion + $pkgname-doc + " +source="https://github.com/ClementTsang/bottom/archive/$pkgver/bottom-$pkgver.tar.gz" + +prepare() { + default_prepare + cargo fetch --target="$CTARGET" --locked +} + +build() { + BTM_GENERATE=true cargo auditable build --frozen --release +} + +check() { + CARGO_HUSKY_DONT_INSTALL_HOOKS=true cargo test --frozen +} + +package() { + install -Dm755 target/release/btm -t "$pkgdir"/usr/bin/ + + install -Dm644 sample_configs/default_config.toml -t "$pkgdir"/usr/share/doc/$pkgname/ + + cd target/tmp/bottom/completion + install -Dm644 _btm "$pkgdir"/usr/share/zsh/site-functions/_btm + install -Dm644 btm.bash "$pkgdir"/usr/share/bash-completion/completions/btm + install -Dm644 btm.fish "$pkgdir"/usr/share/fish/vendor_completions.d//btm.fish +} + +sha512sums=" +fcbdbbca85215a4276a1e8c79c3fd7fb8471fbae26639521cde96bc2c30128958d520a97312f33fdc13ce19fbd67c14c18cc5a4f2ecd743f390d69c1cbe5c640 bottom-0.9.6.tar.gz +" |