pkgname=ktexteditor pkgver=5.37.0 pkgrel=1 pkgdesc='Advanced embeddable text editor' arch="all" url='https://community.kde.org/Frameworks' license="LGPL" depends="libgit2" makedepends="extra-cmake-modules python qt5-qttools-dev qt5-qtxmlpatterns-dev syntax-highlighting qt5-qtscript-dev kparts-dev karchive-dev kguiaddons-dev ktextwidgets-dev sonnet-dev syntax-highlighting-dev" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" prepare() { mkdir -p $srcdir/build } build() { cd $srcdir/build cmake "$srcdir"/${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DBUILD_TESTING=OFF \ -DBUILD_QCH=ON make } package() { cd $srcdir/build make DESTDIR="${pkgdir}" install } sha512sums="02b2ba273845deb11d9be69f4e212618d62319f30c5e5b999473d1392ee8c402d104aad0856a168b845abaf529d6d0a30e090f70e69d133bfa847ae3f6bb6b27 ktexteditor-5.37.0.tar.xz"