# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=libcsys
pkgver=4.5.0
pkgrel=0
pkgdesc="Library for managing drive and getting system resource information in real time"
arch="all"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="udisks2"
makedepends="
	qt5-qtbase-dev
	cmake
	samurai
	"
source="https://gitlab.com/cubocore/libcsys/-/archive/v$pkgver/libcsys-v$pkgver.tar.gz"
subpackages="$pkgname-dev"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No tests

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

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

sha512sums="
c3135df6cb48b02c079f209b65ef29ee206d11ed8215f6a6ec6a72c39fb3261b856fa55d001603778f19780b2e1014f06c938b9145ddeb78e2e8eed7e84dc0fc  libcsys-v4.5.0.tar.gz
"
