mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-25 13:15:12 +02:00
42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Template file for 'kf6-syntax-highlighting'
|
|
pkgname=kf6-syntax-highlighting
|
|
version=6.2.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 <me@johnnynator.dev>"
|
|
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=327ed58d20d52502bbfd9278fa1c9e7ab4a846159e5cf630d09fbea144ebbb7f
|
|
|
|
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"
|
|
}
|
|
}
|