summaryrefslogblamecommitdiff
path: root/user/libksysguard/APKBUILD
blob: 666c72ff1337ff8fc9d76061290e972b9e42ac49 (plain) (tree)
1
2
3
4


                                                  
             













                                                                                
                                                                                   



























                                                                                          
                                                                                                                                                                         
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libksysguard
pkgver=5.12.2
pkgrel=0
pkgdesc="KDE system monitor library"
url="https://www.kde.org/"
arch="all"
license="LGPL-2.1"
options="!check"  # Test requires accelerated X11 session
depends=""
depends_dev="qt5-qtbase-dev qt5-qtscript-dev kcoreaddons-dev kconfig-dev
	ki18n-dev kwindowsystem-dev kcompletion-dev kauth-dev kwidgetsaddons-dev
	kiconthemes-dev kconfigwidgets-dev kservice-dev plasma-framework-dev"
makedepends="$depends_dev cmake extra-cmake-modules python3 gettext-dev
	libx11-dev zlib-dev"
install=""
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.kde.org/stable/plasma/$pkgver/libksysguard-$pkgver.tar.xz"
builddir="$srcdir/libksysguard-$pkgver"

build() {
	cd "$builddir"
	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=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="3047c1c048b910e77dc40bee978636cb3e5ade7897d976139e858b9fd70362eb725430ac5e608fee2b03fe4bda3c4b681145b707177aa39f851f56f1e5fedf86  libksysguard-5.12.2.tar.xz"