# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kwrite pkgver=19.04.3 pkgrel=1 arch="all" url="https://kde.org/applications/utilities/org.kde.kate" pkgdesc="A multi-document, multi-view text editor" license="LGPL-2.0-only AND LGPL-2.0-or-later" makedepends="extra-cmake-modules qt5-qtbase-dev kconfig-dev kcrash-dev ki18n-dev kjobwidgets-dev kio-dev kparts-dev ktexteditor-dev kwindowsystem-dev kxmlgui-dev kiconthemes-dev kactivities-dev kdoctools-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/applications/$pkgver/src/kate-$pkgver.tar.xz" builddir="$srcdir/kate-$pkgver" subpackages="$pkgname-doc $pkgname-lang" prepare() { default_prepare # Remove colliding Kate translations find po -type f -name "*po" -and -not -name "kwrite*" -delete rm -r po/*/docs/kate* } build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_kate=FALSE \ -DBUILD_addons=FALSE make } check() { # kateapp-session_manager_test broken CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" make install mkdir -p "$pkgdir"/usr/share/doc/$pkgname mv "$pkgdir"/usr/share/doc/HTML "$pkgdir"/usr/share/doc/$pkgname/ } sha512sums="57ea4a527307dd45818b7e3f1b59ac346f5e82090b01fb010d4e3e31d00eda9c1b8e554ab203c3320fa073fbd65e775e27375f254f05f2dee512a32ef09bc218 kate-19.04.3.tar.xz"