2021-07-14 16:50:17 +00:00

34 lines
961 B
Plaintext

# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=libsysstat
pkgver=0.4.5
pkgrel=0
pkgdesc="Library used to query system info and statistics"
url="https://github.com/lxqt/libsysstat"
arch="all"
license="LGPL-2.1-or-later"
subpackages="$pkgname-dev"
makedepends="lxqt-build-tools cmake qt5-qtbase-dev"
options="!check" # No testsuite
source="https://github.com/lxqt/libsysstat/releases/download/$pkgver/libsysstat-$pkgver.tar.xz"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
$CMAKE_CROSSOPTS .
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="
1b9091b783e32aeb258bef0e7ea070456f577a42fc5052ebf215dccb195f51c34ae7c2e6178e4eaf12200c5155c53699c2dbfe2a1f7c0c35d06c04275455ed09 libsysstat-0.4.5.tar.xz
"