# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-applications pkgname=kpimtextedit pkgver=23.04.3 pkgrel=1 pkgdesc="Advanced text editor which provide advanced html feature" # armhf blocked by extra-cmake-modules arch="all !armhf" url="https://api.kde.org/kdepim/kpimtextedit/html" license="LGPL-2.0-or-later AND GPL-2.0-or-later" depends_dev=" grantlee-dev kcodecs-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kemoticons-dev ki18n-dev kiconthemes-dev kio-dev kwidgetsaddons-dev kxmlgui-dev qt5-qtbase-dev qt5-qtspeech-dev sonnet-dev syntax-highlighting-dev " makedepends=" $depends_dev extra-cmake-modules qt5-qttools-dev samurai " checkdepends="xvfb-run" _repo_url="https://invent.kde.org/pim/kpimtextedit.git" source="https://download.kde.org/stable/release-service/$pkgver/src/kpimtextedit-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_DESIGNERPLUGIN=ON cmake --build build } check() { cd build # kpimtextedit-plaintext-textgotolinewidgettest, # kpimtextedit-composerng-richtextcomposertest and # kpimtextedit-composerng-richtextcomposercontrolertest require OpenGL # kpimtextedit-texttospeech-texttospeechwidgettest requires texttospeech # kpimtextedit-texttospeech-texttospeechactionstest and # kpimtextedit-grantleebuilder-texthtmlbuildertest are broken local skipped_tests="kpimtextedit-(" local tests=" plaintext-textgotolinewidget texttospeech-texttospeechwidget texttospeech-texttospeechactions composerng-richtextcomposer composerng-richtextcomposercontroler grantleebuilder-texthtmlbuilder " for test in $tests; do skipped_tests="$skipped_tests|$test" done skipped_tests="$skipped_tests)test" CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "$skipped_tests" } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 45a3b8b334c49304f961a0859c8fad792fdd75fccf83013ac019335ecac879c1d697835cf13de157e18cc1e3c806087984fc867910bb363afa160d87ae8008f4 kpimtextedit-23.04.3.tar.xz "