43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'syntax-highlighting'
|
|
pkgname=syntax-highlighting
|
|
version=5.105.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DKATEHIGHLIGHTINGINDEXER_EXECUTABLE=/usr/libexec/${pkgname}/katehighlightingindexer"
|
|
hostmakedepends="kcoreaddons extra-cmake-modules perl qt5-host-tools
|
|
qt5-qmake qt5-tools qt5-devel qt5-tools-devel"
|
|
makedepends="qt5-devel qt5-tools-devel qt5-xmlpatterns-devel
|
|
libatomic-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}-${version}.tar.xz"
|
|
checksum=f558b8203359911fef33701e9bebbfaa7eb7cddcd34440d4d886fb5709d0114c
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" syntax-highlighting"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
|
|
fi
|
|
|
|
post_install() {
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
# internal tool needed for cross-building
|
|
vinstall build/bin/katehighlightingindexer 0755 usr/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"
|
|
}
|
|
}
|