ktextwidgets, revbump, move qtdesigner plugin to the right place, cleanup (#10391)

This commit is contained in:
Schrijvers Luc
2024-05-01 10:14:01 +02:00
committed by GitHub
parent 5381901dcb
commit 5aacc2af91

View File

@@ -4,7 +4,7 @@ It supports rich text as well as plain text."
HOMEPAGE="https://invent.kde.org/frameworks/ktextwidgets/"
COPYRIGHT="2010-2024 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/ktextwidgets-${portVersion}.tar.xz"
CHECKSUM_SHA256="6348888c0cc0a37045337f09d71a28f2fd275dfa2258e5ed4e5342f310a39d8e"
@@ -78,40 +78,30 @@ BUILD_PREREQUIRES="
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
"
PATCH()
{
sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml
}
BUILD()
{
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
cmake -Bbuild -S. $cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release \
-DKDE_INSTALL_QTPLUGINDIR=$addOnsDir/Qt5 \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make $jobArgs
make -Cbuild $jobArgs
}
INSTALL()
{
cd build
make install
make -Cbuild install
prepareInstalledDevelLibs \
prepareInstalledDevelLib \
libKF5TextWidgets
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$dataDir/Qt5 \
$developDir
}
TEST()
{
cd build
make test
make -Cbuild test
}