diff --git a/kde-frameworks/kirigami/kirigami6-6.2.0.recipe b/kde-frameworks/kirigami/kirigami6-6.2.0.recipe new file mode 100644 index 000000000..7f993709e --- /dev/null +++ b/kde-frameworks/kirigami/kirigami6-6.2.0.recipe @@ -0,0 +1,103 @@ +SUMMARY="Lightweight user interface framework for mobile and convergent applications" +DESCRIPTION="Kirigami is KDE's powerful but lightweight user interface framework for \ +mobile and convergent applications. It allows Qt developers to easily create applications \ +that run on most major mobile and desktop platforms without modification (though adapted \ +user interfaces for different form-factors are supported and recommended for optimal user \ +experience). It extends the touch-friendly Qt Quick Controls 2 with larger application \ +building blocks, following the design philosophy laid out in the KDE Human Interface Guidelines." +HOMEPAGE="https://invent.kde.org/frameworks/kirigami" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kirigami-${portVersion}.tar.xz" +CHECKSUM_SHA256="57245b518d64c46afab42a1a619609afb60e546033a162b718c752b88350b40c" +SOURCE_DIR="kirigami-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + kirigami6$secondaryArchSuffix = $portVersion + lib:libKirigami$secondaryArchSuffix = $libVersionCompat + lib:libKirigamiDelegates$secondaryArchSuffix = $libVersionCompat + lib:libKirigamiPlatform$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libgomp$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + lib:libQt6Qml$secondaryArchSuffix + lib:libQt6Quick$secondaryArchSuffix + " + +PROVIDES_devel=" + kirigami6${secondaryArchSuffix}_devel = $portVersion + devel:libKirigami$secondaryArchSuffix = $libVersionCompat + devel:libKirigamiDelegates$secondaryArchSuffix = $libVersionCompat + devel:libKirigamiPlatform$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + kirigami6$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= $portVersion + qt6_tools${secondaryArchSuffix}_devel + devel:libQt6Core$secondaryArchSuffix + devel:libQt6Qml$secondaryArchSuffix + devel:libQt6Quick$secondaryArchSuffix + devel:libQt6QuickTest$secondaryArchSuffix + devel:libQt6ShaderTools$secondaryArchSuffix + devel:libQt6Svg$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:dot + cmd:doxygen >= 1.9 + cmd:g++$secondaryArchSuffix + cmd:make + " + +TEST_REQUIRES=" + qthaikuplugins$secondaryArchSuffix + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DDESKTOP_ENABLED=OFF \ + -DDISABLE_DBUS=ON \ + -DBUILD_QCH=ON \ + -DBUILD_EXAMPLES=OFF \ + -DBUILD_TESTING=OFF + make -Cbuild $jobArgs +} + +INSTALL() +{ + make -Cbuild install + + prepareInstalledDevelLibs \ + libKirigami \ + libKirigamiDelegates \ + libKirigamiPlatform + + packageEntries devel \ + $developDir \ + $dataDir/doc \ + $libDir/cmake +} + +TEST() +{ + export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" + make -Cbuild test +}