41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
# Template file for 'syntax-highlighting'
|
|
pkgname=syntax-highlighting
|
|
version=5.37.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="Denis Revin <denis.revin@gmail.com>"
|
|
license="LGPL-2"
|
|
homepage="https://projects.kde.org/projects/frameworks/syntax-highlighting"
|
|
distfiles="http://download.kde.org/stable/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=e2d075482bc5409646db40374c6caa0b055276e1a5cd8e30065e9f4fd0baa6d0
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-host-tools qt5-qmake qt5-tools syntax-highlighting"
|
|
fi
|
|
|
|
pre_configure() {
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
sed -i -e "s,COMMAND katehighlightingindexer,COMMAND /usr/lib/libexec/${pkgname}/katehighlightingindexer,g" data/CMakeLists.txt
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
# internal tool needed for cross-building
|
|
vinstall build/src/indexer/katehighlightingindexer 0755 usr/lib/libexec/${pkgname}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|