void-packages/srcpkgs/kate/template

50 lines
1.5 KiB
Bash

# Template file for 'kate'
pkgname=kate
version=24.05.0
revision=2
build_style=cmake
build_helper=qemu
configure_args="-DBUILD_TESTING=OFF -DKF6_HOST_TOOLING=/usr/lib/cmake
-DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules pkg-config gettext qt6-tools qt6-base
kf6-kconfig kf6-kdoctools"
makedepends="kf6-kitemmodels-devel kf6-knewstuff-devel kf6-ktexteditor-devel
kf6-threadweaver-devel kf6-kuserfeedback-devel kf6-kdoctools-devel
kf6-kconfig-devel qt6-base-private-devel"
depends="hicolor-icon-theme"
short_desc="KDE Text editor"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later, LGPL-2.0-or-later, GPL-2.0-or-later"
homepage="https://kde.org/applications/en/utilities/org.kde.kate"
distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname%5}-${version}.tar.xz"
checksum=d2dc5fdf099068d315be9562d334c980c80ef6df7cd7400013abc38d4a4ed626
replaces="kate5>=0"
libkate_package() {
short_desc+=" - libraries"
pkg_install() {
vmove usr/lib/libkateprivate.so.*
}
}
kwrite_package() {
short_desc+=" - kwrite"
pkg_install() {
vmove usr/bin/kwrite
vmove usr/share/applications/org.kde.kwrite.desktop
vmove usr/share/metainfo/org.kde.kwrite.appdata.xml
for f in ${DESTDIR}/usr/share/doc/HTML/*/kwrite; do
vmove ${f#$DESTDIR}
done
for f in ${DESTDIR}/usr/share/icons/hicolor/*/apps/kwrite.*; do
vmove ${f#$DESTDIR}
done
}
}
kate5_package() {
short_desc+=" - (Dummy transitional package)"
build_style=meta
depends="kate-${version}_${revision}"
}