From cbfd8366a7afe61084d3d30734cab9c6ef210d64 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Sat, 2 Jan 2021 21:38:52 +1000 Subject: [PATCH] kirigami: add recipe --- .../kirigami/kirigami-5.77.0.recipe | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 kde-frameworks/kirigami/kirigami-5.77.0.recipe diff --git a/kde-frameworks/kirigami/kirigami-5.77.0.recipe b/kde-frameworks/kirigami/kirigami-5.77.0.recipe new file mode 100644 index 000000000..d56cf1cb0 --- /dev/null +++ b/kde-frameworks/kirigami/kirigami-5.77.0.recipe @@ -0,0 +1,81 @@ +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://techbase.kde.org/Kirigami" +COPYRIGHT="2010-2020 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://github.com/KDE/kirigami/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="9eb2f5221610f28bdde61c628baaf7dca8ae2dee46b914f48520285156a00566" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + kirigami$secondaryArchSuffix = $portVersion + lib:libKF5Kirigami2$secondaryArchSuffix = $portVersion compat >= 5 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + " + +PROVIDES_devel=" + kirigami${secondaryArchSuffix}_devel = $portVersion + devel:libKF5Kirigami2$secondaryArchSuffix = $portVersion compat >= 5 + " +REQUIRES_devel=" + kirigami$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= $portVersion + devel:libQt5Core$secondaryArchSuffix >= 5.15 + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:lrelease$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + sed -e '/ecm_find_qmlmodule/ s/^#*/#/' -i CMakeLists.txt + + mkdir -p build + cd build + + cmake .. $cmakeDirArgs \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \ + -DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DBUILD_EXAMPLES=OFF \ + -DDISABLE_DBUS=ON + make $jobArgs +} + +INSTALL() +{ + cd build + make install + + prepareInstalledDevelLibs \ + libKF5Kirigami2 + + packageEntries devel \ + $libDir/cmake \ + $dataDir/Qt5/mkspecs \ + $developDir +} + +TEST() +{ + cd build + make test +}