# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corestats
pkgver=4.5.0
pkgrel=0
pkgdesc="A system resource viewer from C-Suite"
# not useful on s390x
arch="all !s390x"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev libcprime-dev libcsys-dev lm-sensors-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/corestats/-/archive/v$pkgver/corestats-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No test suite

build() {
	cmake -B build \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
68b1f653b90fa9c7f68cb9bf6075e682cbe42e148a371ffc2301a0160b4f75879cdf7e7805772b2a05cedd99b0b83ce2a98926ac48a1a0a36d12f05739090dff  corestats-4.5.0.tar.gz
"
