Date: Sunday, November 17, 2019 @ 23:53:39 Author: arojas Revision: 369067
archrelease: copy kde-unstable to kde-unstable-x86_64 Added: kate/repos/kde-unstable-x86_64/ kate/repos/kde-unstable-x86_64/PKGBUILD (from rev 369066, kate/kde-unstable/PKGBUILD) kate/repos/kde-unstable-x86_64/kate-fix-po-build.patch (from rev 369066, kate/kde-unstable/kate-fix-po-build.patch) -------------------------+ PKGBUILD | 63 ++++++++++++++++++++++++++++++++++++++++++++++ kate-fix-po-build.patch | 12 ++++++++ 2 files changed, 75 insertions(+) Copied: kate/repos/kde-unstable-x86_64/PKGBUILD (from rev 369066, kate/kde-unstable/PKGBUILD) =================================================================== --- kde-unstable-x86_64/PKGBUILD (rev 0) +++ kde-unstable-x86_64/PKGBUILD 2019-11-17 23:53:39 UTC (rev 369067) @@ -0,0 +1,63 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Andrea Scarpino <and...@archlinux.org> + +pkgbase=kate +pkgname=(kwrite kate) +pkgver=19.11.80 +pkgrel=1 +arch=(x86_64) +license=(GPL LGPL FDL) +makedepends=(extra-cmake-modules kdoctools plasma-framework knewstuff kitemmodels ktexteditor threadweaver kactivities) +source=("https://download.kde.org/unstable/applications/$pkgver/src/$pkgbase-$pkgver.tar.xz"{,.sig} + kate-fix-po-build.patch) +sha256sums=('9fda7e964bb44a8d27a7f31f174439af88b93db82418219fc5a2c84e9db399f2' + 'SKIP' + '0f7812029a773251b408e369f2915ae72d4c2a72aaf73b8d0da5a5af8c65b0f1') +validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aa...@kde.org> + F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cf...@kde.org> + +prepare() { + mkdir -p build + + cd $pkgbase-$pkgver + patch -p1 -i ../kate-fix-po-build.patch # Fix build +} + +build() { + cd build + cmake ../$pkgbase-$pkgver \ + -DBUILD_TESTING=OFF + make +} + +package_kwrite() { + pkgdesc="Text Editor" + groups=(kde-applications kdebase) + url="https://www.kde.org/applications/utilities/kwrite/" + depends=(ktexteditor hicolor-icon-theme) + + cd build + make DESTDIR="$pkgdir" install + + find "$pkgdir" -type f -name '*kate*' -exec rm {} \; + rm -r "$pkgdir"/usr/lib/qt/plugins/ktexteditor \ + "$pkgdir"/usr/share/doc/HTML/*/{kate,katepart} \ + "$pkgdir"/usr/share/katexmltools \ + "$pkgdir"/usr/share/locale/*/LC_MESSAGES/{ktexteditorpreviewplugin,lspclient}.mo \ + "$pkgdir"/usr/share/plasma/plasmoids +} + +package_kate() { + pkgdesc="Advanced Text Editor" + groups=(kde-applications kdebase) + url="https://www.kde.org/applications/utilities/kate/" + depends=(knewstuff ktexteditor threadweaver kactivities kitemmodels hicolor-icon-theme) + optdepends=('konsole: open a terminal in Kate') + + cd build + make DESTDIR="$pkgdir" install + + find "$pkgdir" -type f -name '*kwrite*' -exec rm {} \; + rm -r "$pkgdir"/usr/share/doc/HTML/*/kwrite +} Copied: kate/repos/kde-unstable-x86_64/kate-fix-po-build.patch (from rev 369066, kate/kde-unstable/kate-fix-po-build.patch) =================================================================== --- kde-unstable-x86_64/kate-fix-po-build.patch (rev 0) +++ kde-unstable-x86_64/kate-fix-po-build.patch 2019-11-17 23:53:39 UTC (rev 369067) @@ -0,0 +1,12 @@ +diff --git a/kate-19.11.80/CMakeLists.txt.orig b/kate-19.11.80/CMakeLists.txt +index 808c1d4..2a5090c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -55,6 +55,7 @@ if(${ECM_VERSION} VERSION_GREATER "5.63.0") + file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h) + kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) + endif() ++find_package(KF5I18n) + ki18n_install(po) + if (KF5DocTools_FOUND) + kdoctools_install(po)