# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kpimtextedit pkgver=19.04.3 pkgrel=0 pkgdesc="Advanced text editor which provide advanced html feature" arch="all" url="https://api.kde.org/kdepim/kpimtextedit/html" license="LGPL-2.0-or-later AND GPL-2.0-or-later" depends_dev="qt5-qtbase-dev qt5-qtspeech-dev grantlee-dev kcodecs-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kemoticons-dev ki18n-dev kiconthemes-dev kio-dev sonnet-dev syntax-highlighting-dev kwidgetsaddons-dev kxmlgui-dev" makedepends="$depends_dev extra-cmake-modules kdesignerplugin-dev kdesignerplugin qt5-qttools-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make } check() { # kpimtextedit-plaintext-textgotolinewidgettest requires OpenGL # kpimtextedit-texttospeech-texttospeechwidgettest requires texttospeech # kpimtextedit-texttospeech-texttospeechactionstest is broken # kpimtextedit-composerng-richtextcomposertest requires OpenGL # kpimtextedit-composerng-richtextcomposercontrolertest requires OpenGL CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "kpimtextedit-(plaintext-textgotolinewidget|texttospeech-texttospeechwidget|texttospeech-texttospeechactions|composerng-richtextcomposer|composerng-richtextcomposercontroler)test" } package() { DESTDIR="$pkgdir" make install } sha512sums="b8a48b6b6e45ad3ae9d2b0ea7966884cb28850a295b761db430a84da47b52a26e32dd58b1ea5302948812b5169a96ac31281be04753712b144554cfca4bcdeb1 kpimtextedit-19.04.3.tar.xz"