# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=ktexteditor pkgver=5.76.0 pkgrel=0 pkgdesc="Advanced embeddable text editor" arch="all !armhf !mips64 !s390x" # armhf blocked by extra-cmake-modules and mips64, s390x blocked by polkit 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" options="!check" # fail on builders source="https://download.kde.org/stable/frameworks/${pkgver%.*}/ktexteditor-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums="bc6a0e0859a5e3e82c12c06fbc032dc1d6e529400f99805279bff894ac548d388f8f36a5e7aec471546fc70acacc1ae379cfa16958436898e87ad2d6c030265c ktexteditor-5.76.0.tar.xz"