summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-01 22:31:49 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-01 22:31:49 -0500
commita95e1c7d3dee880aca6c0fb04fe1583d66a167ce (patch)
tree609889ecf93eb2a4b232711541ca2b7689940d7c /user
parent2bfbf461cfd1ba6cb49bb07fa2513fef9cb62bcb (diff)
downloadpackages-a95e1c7d3dee880aca6c0fb04fe1583d66a167ce.tar.gz
packages-a95e1c7d3dee880aca6c0fb04fe1583d66a167ce.tar.bz2
packages-a95e1c7d3dee880aca6c0fb04fe1583d66a167ce.tar.xz
packages-a95e1c7d3dee880aca6c0fb04fe1583d66a167ce.zip
user/libksysguard: new package
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"