SUMMARY="KDE Desktop notifications" DESCRIPTION="KNotification is used to notify the user of an event. \ It covers feedback and persistent events." HOMEPAGE="https://invent.kde.org/frameworks/knotifications" COPYRIGHT="2010-2026 KDE Organisation" LICENSE="GNU LGPL v2" REVISION="1" SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/knotifications-${portVersion}.tar.xz" CHECKSUM_SHA256="0884add69f26a455cb8b6327bf89dc7ad3a0e4397c43c202fcf7ff73204ec695" SOURCE_DIR="knotifications-$portVersion" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" libVersion="$portVersion" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" PROVIDES=" knotifications6$secondaryArchSuffix = $portVersion lib:libKF6Notifications$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix lib:libGL$secondaryArchSuffix lib:libKF6ConfigCore$secondaryArchSuffix lib:libQt6Core$secondaryArchSuffix lib:libqt6Qml$secondaryArchSuffix " PROVIDES_devel=" knotifications6${secondaryArchSuffix}_devel = $portVersion devel:libKF6Notifications$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" knotifications6$secondaryArchSuffix == $portVersion base " ARCHITECTURES_doc="any" PROVIDES_doc=" knotifications6_doc = $portVersion " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel extra_cmake_modules$secondaryArchSuffix >= $portVersion qt6_tools${secondaryArchSuffix}_devel devel:libKF6ConfigCore$secondaryArchSuffix >= $libVersion devel:libQt6Core$secondaryArchSuffix devel:libqt6Qml$secondaryArchSuffix " BUILD_PREREQUIRES=" kde_qdoc_common cmd:cmake cmd:g++$secondaryArchSuffix cmd:make cmd:pkg_config$secondaryArchSuffix " TEST_REQUIRES=" qthaikuplugins " BUILD() { export KDE_DOCS="`finddir B_SYSTEM_DATA_DIRECTORY`"/kde-qdoc-common cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \ $cmakeDirArgs \ -DCMAKE_SKIP_RPATH=YES \ -DBUILD_TESTING=OFF \ -Wno-dev make -C build $jobArgs cmake --build build --target prepare_docs cmake --build build --target generate_docs cmake --build build --target generate_qch } INSTALL() { make -C build install # cmake --build build --target install_html_docs cmake --build build --target install_qch_docs prepareInstalledDevelLib \ libKF6Notifications packageEntries devel \ $developDir \ $libDir/cmake packageEntries doc \ $documentationDir } TEST() { export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" ctest --test-dir build --output-on-failure # individual tests, opens windows, manual intervention needed # build/bin/actiontest build/bin/notificationtester }