38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
# Template file for 'syntax-highlighting'
|
|
pkgname=syntax-highlighting
|
|
version=5.54.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DBUILD_TESTING=OFF"
|
|
hostmakedepends="extra-cmake-modules perl"
|
|
makedepends="qt5-devel qt5-tools-devel qt5-xmlpatterns-devel"
|
|
short_desc="Syntax highlighting engine for structured text and code"
|
|
maintainer="John <johnz@posteo.net>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://projects.kde.org/projects/frameworks/syntax-highlighting"
|
|
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=1496e8a8ea264b21ee5bd89d3c04a6c6ff26ea50c3de222cc3a810f6d6bc5508
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-host-tools qt5-qmake qt5-tools syntax-highlighting qt5-devel qt5-tools-devel"
|
|
configure_args+=" -DKATEHIGHLIGHTINGINDEXER_EXECUTABLE=/usr/lib/libexec/${pkgname}/katehighlightingindexer"
|
|
fi
|
|
|
|
post_install() {
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
# internal tool needed for cross-building
|
|
vinstall build/bin/katehighlightingindexer 0755 usr/lib/libexec/${pkgname}
|
|
fi
|
|
}
|
|
|
|
syntax-highlighting-devel_package() {
|
|
short_desc+=" - development"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/qt5/mkspecs
|
|
vmove usr/lib/cmake
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|