From 51fccac87907bb56d44f48154136f6568b188145 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sun, 23 Jul 2023 16:10:52 +0200 Subject: [PATCH] krunner, new recipe (#9066) --- kde-frameworks/krunner/krunner-5.93.0.recipe | 122 +++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 kde-frameworks/krunner/krunner-5.93.0.recipe diff --git a/kde-frameworks/krunner/krunner-5.93.0.recipe b/kde-frameworks/krunner/krunner-5.93.0.recipe new file mode 100644 index 000000000..cae10bbcc --- /dev/null +++ b/kde-frameworks/krunner/krunner-5.93.0.recipe @@ -0,0 +1,122 @@ +SUMMARY="Framework for Plasma runners" +DESCRIPTION="The Plasma workspace provides an application called KRunner which, among other \ +things, allows one to type into a text area which causes various actions and information that \ +match the text appear as the text is being typed." +HOMEPAGE="https://develop.kde.org/products/frameworks/" +COPYRIGHT="2010-2022 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://github.com/KDE/krunner/archive/refs/tags/v$portVersion.tar.gz" +CHECKSUM_SHA256="3b90fb99967fda2debdc1dd93085044eb65ca20c3aa4350bdbec5d6b17767889" +SOURCE_FILENAME="krunner-v$portVersion.tar.gz" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="5.20.3" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + krunner$secondaryArchSuffix = $portVersion + lib:libKF5Runner$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libKF5Codecs$secondaryArchSuffix + lib:libKF5ConfigCore$secondaryArchSuffix + lib:libKF5CoreAddons$secondaryArchSuffix + lib:libKF5I18n$secondaryArchSuffix + lib:libKF5KIOCore$secondaryArchSuffix + lib:libKF5Package$secondaryArchSuffix + lib:libKF5Plasma$secondaryArchSuffix + lib:libKF5Service$secondaryArchSuffix + lib:libKF5ThreadWeaver$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5DBus$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Network$secondaryArchSuffix + lib:libQt5Widgets$secondaryArchSuffix + lib:libQt5Xml$secondaryArchSuffix + " + +PROVIDES_devel=" + krunner${secondaryArchSuffix}_devel = $portVersion + devel:libKF5Runner$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + krunner$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= 5.93.0 + devel:libKF5Auth$secondaryArchSuffix + devel:libKF5Bookmarks$secondaryArchSuffix + devel:libKF5Codecs$secondaryArchSuffix + devel:libKF5Completion$secondaryArchSuffix + devel:libKF5ConfigCore$secondaryArchSuffix + devel:libKF5ConfigWidgets$secondaryArchSuffix + devel:libKF5CoreAddons$secondaryArchSuffix + devel:libKF5I18n$secondaryArchSuffix + devel:libKF5ItemViews$secondaryArchSuffix + devel:libKF5JobWidgets$secondaryArchSuffix + devel:libKF5KIOCore$secondaryArchSuffix + devel:libKF5Package$secondaryArchSuffix + devel:libKF5Plasma$secondaryArchSuffix + devel:libKF5Service$secondaryArchSuffix + devel:libKF5Solid$secondaryArchSuffix + devel:libKF5ThreadWeaver$secondaryArchSuffix + devel:libKF5WidgetsAddons$secondaryArchSuffix + devel:libKF5WindowSystem$secondaryArchSuffix + devel:libKF5XmlGui$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix + devel:libQt5DBus$secondaryArchSuffix + devel:libQt5Gui$secondaryArchSuffix + devel:libQt5Network$secondaryArchSuffix + devel:libQt5Widgets$secondaryArchSuffix + devel:libQt5Xml$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:make + cmd:msgfmt + cmd:msgmerge + cmd:pkg_config$secondaryArchSuffix + cmd:qdbuscpp2xml$secondaryArchSuffix >= 5 + cmd:xsltproc + " + +PATCH() +{ + sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml +} + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \ + -DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + prepareInstalledDevelLib \ + libKF5Runner + + packageEntries devel \ + $libDir/cmake \ + $dataDir/Qt5/mkspecs \ + $developDir +} + +TEST() +{ + make check +}