diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-29 05:22:22 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-29 05:22:22 -0500 |
commit | 90056e0af6be0d938bd1c2730cc3dfa6278c353c (patch) | |
tree | 491ddcb0803042ea9e3d0bc9235b18929043b55d /user | |
parent | f314943ac0343e9c99cfde49b0ea8ed481fa3610 (diff) | |
download | packages-90056e0af6be0d938bd1c2730cc3dfa6278c353c.tar.gz packages-90056e0af6be0d938bd1c2730cc3dfa6278c353c.tar.bz2 packages-90056e0af6be0d938bd1c2730cc3dfa6278c353c.tar.xz packages-90056e0af6be0d938bd1c2730cc3dfa6278c353c.zip |
user/knotifications: new package
Diffstat (limited to 'user')
-rw-r--r-- | user/knotifications/APKBUILD | 47 |
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" |