# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=ktexteditor pkgver=5.67.0 pkgrel=1 pkgdesc="Advanced embeddable text editor" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="LGPL-2.0-or-later AND (LGPL-2.0-only OR LGPL-3.0-only)" depends_dev="karchive-dev kconfig-dev kguiaddons-dev ki18n-dev kio-dev kparts-dev sonnet-dev kiconthemes-dev syntax-highlighting-dev kauth-dev" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev doxygen" checkdepends="xvfb-run" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/ktexteditor-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="8a485d0e9c78b090285c1ed447cef859dd717097ecaad4a002f08933e3536664cdec2eac21a9968195da08369398b84ce77db49e5762b1900b219902b13a28b0 ktexteditor-5.67.0.tar.xz"