blob: ac86a668475f30adddefe62612397727763fbf51 (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libksysguard
pkgver=5.8.7
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/Attic/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="a2b29e548e76d73814b4775343449ca84d48c53967830eb2c96064f385e83ec800e50bff172868d381f24c790a13aef90e5745ba0d545e50a2fd4c040b5d9749 libksysguard-5.8.7.tar.xz"
|