# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=syntax-highlighting pkgver=5.93.0 pkgrel=0 pkgdesc="Syntax highlighting engine for structured text and code" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="MIT" depends_dev="qt5-qtbase-dev" makedepends="$depends_dev doxygen extra-cmake-modules qt5-qttools-dev samurai " source="https://download.kde.org/stable/frameworks/${pkgver%.*}/syntax-highlighting-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" build() { cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 6721f25216d946a63335ebac4c19cff7eed7ce9e6f68c9406be2045bc5db56cf9f9c9ed16b4878fd654c96aa78f374b32a61e583febd020a2a0fd46fc879d157 syntax-highlighting-5.93.0.tar.xz "