From a95e1c7d3dee880aca6c0fb04fe1583d66a167ce Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 1 Oct 2017 22:31:49 -0500 Subject: user/libksysguard: new package --- user/libksysguard/APKBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 user/libksysguard/APKBUILD (limited to 'user/libksysguard/APKBUILD') 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 +# Maintainer: A. Wilcox +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" -- cgit v1.2.3-70-g09d2