From 90056e0af6be0d938bd1c2730cc3dfa6278c353c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 29 Sep 2017 05:22:22 -0500 Subject: user/knotifications: new package --- user/knotifications/APKBUILD | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 user/knotifications/APKBUILD diff --git a/user/knotifications/APKBUILD b/user/knotifications/APKBUILD new file mode 100644 index 000000000..39b8a7fbc --- /dev/null +++ b/user/knotifications/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=knotifications +pkgver=5.38.0 +pkgrel=0 +pkgdesc="Framework for sending notifications to users" +url="https://www.kde.org/" +arch="all" +license="LGPL-2.1" +options="!check" # Requires DBus daemon running. +depends="" +depends_dev="qt5-qtbase-dev qt5-qtx11extras-dev kwindowsystem-dev kconfig-dev + kcodecs-dev kcoreaddons-dev phonon-dev libdbusmenu-qt-dev" +makedepends="$depends_dev cmake extra-cmake-modules libx11-dev libxext-dev + libice-dev qt5-qttools-dev" +install="" +subpackages="$pkgname-dev $pkgname-lang" +source="http://download.kde.org/stable/frameworks/5.38/knotifications-$pkgver.tar.xz" +builddir="$srcdir/knotifications-$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="47d3268edd3162f48973e3ca0586df73ec3115b100c866e014e8dbf4b36f5102d85d97d722e849641415e2f91e7e1f2e5976b42e7a34ae95ba8ecf88e8ec0672 knotifications-5.38.0.tar.xz" -- cgit v1.2.3-70-g09d2