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