summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/knotifications/APKBUILD47
1 files changed, 47 insertions, 0 deletions
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 <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+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"