# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=btop
pkgver=1.4.0
pkgrel=0
pkgdesc="Resource monitor"
url="https://github.com/aristocratos/btop"
license="Apache-2.0"
arch="all"
makedepends="coreutils-fmt lowdown linux-headers"
subpackages="$pkgname-doc"
source="https://github.com/aristocratos/btop/archive/v$pkgver/btop-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	make ADDFLAGS="-fno-ipa-cp" GIT_COMMIT=""
}

package() {
	make install DESTDIR="$pkgdir" PREFIX=/usr

	rm "$pkgdir"/usr/share/btop/README.md
}

sha512sums="
7b7c63daf68192893ae4533c04ea70dcd6f253e188b1c842f2ebebac0b28e51431edef6ccfce5b25b3adbd5b2b637fc832bce7d5d64d664c2bf5c4672be75c8f  btop-1.4.0.tar.gz
"
