15a6bb1087
[ci skip]
40 lines
1.4 KiB
Bash
40 lines
1.4 KiB
Bash
# Template file for 'kate5'
|
|
pkgname=kate5
|
|
version=20.08.3
|
|
revision=1
|
|
wrksrc="${pkgname%5}-${version}"
|
|
build_style=cmake
|
|
configure_args="-DBUILD_TESTING=OFF"
|
|
hostmakedepends="extra-cmake-modules pkg-config kcoreaddons gettext"
|
|
makedepends="kitemmodels-devel knewstuff-devel ktexteditor-devel
|
|
plasma-framework-devel threadweaver-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=e9b7a9b11ae54a387b5a6d6f4253f9da7f63972fe2928d7fa280d969638dfdd4
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" -DKF5_HOST_TOOLING=/usr/lib/cmake"
|
|
hostmakedepends+=" kauth-devel kconfig-devel kcoreaddons-devel
|
|
kpackage-devel kdoctools python3 qt5-host-tools qt5-qmake"
|
|
fi
|
|
|
|
kwrite_package() {
|
|
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
|
|
for f in ${DESTDIR}/usr/share/locale/*/LC_MESSAGES/kwrite.mo; do
|
|
vmove ${f#$DESTDIR}
|
|
done
|
|
}
|
|
}
|