kate5: split kwrite into subpackage

This commit is contained in:
John 2020-06-15 16:27:25 +02:00
parent 44c524e487
commit 89a7bc7898
2 changed files with 21 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# Template file for 'kate5'
pkgname=kate5
version=20.04.1
revision=1
revision=2
wrksrc="${pkgname%5}-${version}"
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
@ -18,5 +18,23 @@ checksum=f1707e85aa858cc7f1d71ca3400ee12e96c012fb8dd3e472a7387b7dc0f02b5b
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"
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
}
}

1
srcpkgs/kwrite Symbolic link
View file

@ -0,0 +1 @@
kate5