diff --git a/common/shlibs b/common/shlibs index 456c904fa65..793fe1b7c9c 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2010,6 +2010,7 @@ libKF6Style.so.6 kf6-frameworkintegration-6.0.0_1 libKF6Su.so.6 kf6-kdesu-6.0.0_1 libKF6Svg.so.6 kf6-ksvg-6.0.0_1 libKF6Syndication.so.6 kf6-syndication-6.0.0_1 +libKF6SyntaxHighlighting.so.6 kf6-syntax-highlighting-6.0.0_1 libKF6TextEditor.so.6 kf6-ktexteditor-6.0.0_1 libKF6TextTemplate.so.6 kf6-ktexttemplate-6.0.0_1 libKF6TextWidgets.so.6 kf6-ktextwidgets-6.0.0_1 diff --git a/srcpkgs/kf6-syntax-highlighting-devel b/srcpkgs/kf6-syntax-highlighting-devel new file mode 120000 index 00000000000..0ad907a28a3 --- /dev/null +++ b/srcpkgs/kf6-syntax-highlighting-devel @@ -0,0 +1 @@ +kf6-syntax-highlighting \ No newline at end of file diff --git a/srcpkgs/kf6-syntax-highlighting/template b/srcpkgs/kf6-syntax-highlighting/template new file mode 100644 index 00000000000..78d100d2310 --- /dev/null +++ b/srcpkgs/kf6-syntax-highlighting/template @@ -0,0 +1,42 @@ +# Template file for 'kf6-syntax-highlighting' +pkgname=kf6-syntax-highlighting +version=6.1.0 +revision=1 +build_style=cmake +configure_args=" + -DKATEHIGHLIGHTINGINDEXER_EXECUTABLE=/usr/libexec/kate/katehighlightingindexer + -DKDE_INSTALL_QMLDIR=lib/qt6/qml + -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins" +hostmakedepends="extra-cmake-modules qt6-tools qt6-base perl + qt6-declarative-host-tools" +makedepends="qt6-base-devel qt6-declarative-devel libxerces-c-devel" +short_desc="Syntax highlighting Engine for Structured Text and Code" +maintainer="John " +license="LGPL-2.1-or-later" +homepage="https://invent.kde.org/frameworks/syntax-highlighting" +distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz" +checksum=1e7449052b0e3e97d615d6157e5647958e9bb98fa5d8f9c5d694829c5d67cab6 + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" kf6-syntax-highlighting-devel" +fi + +post_install() { + if [ -z "$CROSS_BUILD" ]; then + # internal tool needed for cross-building + vinstall build/bin/katehighlightingindexer 0755 usr/libexec/kate + fi +} + +kf6-syntax-highlighting-devel_package() { + depends="$makedepends ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + if [ -z "$CROSS_BUILD" ]; then + vmove usr/libexec/kate + fi + vmove usr/include + vmove usr/lib/cmake + vmove "usr/lib/*.so" + } +}