2025-01-12 12:29:12 +01:00

51 lines
1.3 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-frameworks
maintainer="team/kde <bribbers@disroot.org>"
pkgname=syntax-highlighting
pkgver=6.10.0
pkgrel=0
pkgdesc="Syntax highlighting engine for structured text and code"
# armhf blocked by qt6-qtdeclarative
arch="all !armhf"
url="https://community.kde.org/Frameworks"
license="MIT"
depends_dev="
qt6-qtbase-dev
qt6-qtdeclarative-dev
xerces-c-dev
"
makedepends="$depends_dev
doxygen
extra-cmake-modules
graphviz
perl
qt6-qttools-dev
samurai
"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
_repo_url="https://invent.kde.org/frameworks/syntax-highlighting.git"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/syntax-highlighting-$pkgver.tar.xz"
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() {
ctest --test-dir build -E "(test|html)highlighter_test"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
c60f9da6b6ae74e6582d7440f65512b3047d804591e947ce314c823f98b9820bd54badb64cca20463b4b6e490b9a4f787866bb1b6a8c666ca1deaa0257d63ef1 syntax-highlighting-6.10.0.tar.xz
"