0
0
Fork 0
haikuports/kde-frameworks/kirigami/kirigami-5.86.0.recipe

83 lines
2.2 KiB
Bash
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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-2021 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://github.com/KDE/kirigami/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="458de45f6d3a50b14f69f0b1d840a5ec4c080b891afb786a69374e42257e24d7"
ARCHITECTURES="all !x86_gcc2"
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 \
-DCMAKE_BUILD_TYPE=Release \
-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
}