summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/libksysguard/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/user/libksysguard/APKBUILD b/user/libksysguard/APKBUILD
new file mode 100644
index 000000000..ac86a6684
--- /dev/null
+++ b/user/libksysguard/APKBUILD
@@ -0,0 +1,48 @@
+# 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"