mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-14 10:02:38 +01:00
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
|
|
# Contributor: Zachary Lee Andrews <zcrayfish@gmail.com>
|
|
pkgname=libsysstat
|
|
pkgver=1.1.0
|
|
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="cmake samurai lxqt-build-tools qt6-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 -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
$CMAKE_CROSSOPTS .
|
|
cmake --build build
|
|
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --build build --target install
|
|
}
|
|
|
|
sha512sums="
|
|
5bcaed044081314dfdc9034c496ee02138160ba3d0d49b137a4860b840f4371a80ba5e0b90ae2e021c73102c71f59cdcfc76fb23678e9010f55913ee15461c4c libsysstat-1.1.0.tar.xz
|
|
"
|