summaryrefslogblamecommitdiff
path: root/user/libsysstat/APKBUILD
blob: 9f20151edb478d494c379de3f270f31558c2371f (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                 
                  

                 
        
                                                              
                             
          
                                  

                   

                                                                     
                          
                                                                                               

         









                                                                                          

                                          


           
                                               

 
                                                                                                                                                                      
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=libsysstat
pkgver=0.4.3
_lxqt_build=0.7.0
pkgrel=0
pkgdesc="Library for querying system information & statistics"
url="https://lxqt.github.io/"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1+"
depends=""
makedepends="cmake extra-cmake-modules lxqt-build-tools>=$_lxqt_build
	qt5-qtbase-dev"
subpackages="$pkgname-dev"
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 \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} -Bbuild
	make -C build
}

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

sha512sums="a34511e4f9fe1ed977ffc65b11948459922760f9a22b225d48d1c7cae9fc6c94b315c1394768f4c7b94ffc28c1267410c21ba55ff89e54976526ea1e5e4d7a56  libsysstat-0.4.3.tar.xz"