# Contributor: 6543 <6543@obermui.de>
# Maintainer: 6543 <6543@obermui.de>
pkgname=batmon
pkgver=0.0.1
pkgrel=0
pkgdesc="An interactive viewer, similar to top, htop and other *top utilities, but about the batteries installed in your notebook."
url="https://crates.io/crates/batmon"
arch="all !s390x"
license="Apache-2.0"
makedepends="
	cargo
	cargo-auditable
	"
options="net"

source="$pkgname-$pkgver.tar.gz::https://github.com/6543/batmon/archive/refs/tags/v$pkgver.tar.gz"

export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"

build() {
	cargo auditable build --release
}

check() {
	cargo test
}

package() {
	install -Dm755 target/release/batmon "$pkgdir"/usr/bin/batmon
}

sha512sums="
2c365a90a6b949cb74a0e3e8e5eff5f77db36b93e4008226703daf9b1a55737ab62f7214d8a908a6966ce3daeb2b2d7bc2e30d11f66380111ec741576f49a69e  batmon-0.0.1.tar.gz
"
