kirigami: add recipe

This commit is contained in:
Gerasim Troeglazov
2021-01-02 21:38:52 +10:00
parent f74462a1b7
commit cbfd8366a7

View File

@@ -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
}