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

                                                           
                  

            
        
                                                              
                             
          
                                  

                   
                                                               
                       
                          
                                                                                               

         









                                                                                          

                                          


           
                                               

 
                                                                                                                                                                      
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=libsysstat
pkgver=0.4.6
_lxqt=0.10.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
	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="dd0e6f67509658691082b043e06589c6a89eea016a0e68cdb7d377f25a0bc63aa476b5eb90f230593daab462a9e22f6f636c0723110fb36faeea7c0aa6d0b85b  libsysstat-0.4.6.tar.xz"