author | Felix Yan
<felixonmars@archlinux.org> 2022-08-18 20:41:28 UTC |
committer | Felix Yan
<felixonmars@archlinux.org> 2022-08-18 20:41:28 UTC |
parent | 896d8d10115053cae37b94baeda2c4f1ce2d7e65 |
PKGBUILD | +22 | -39 |
diff --git a/PKGBUILD b/PKGBUILD index 8452a88..191a2b2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,15 +2,29 @@ # Maintainer: Antonio Rojas <arojas@archlinux.org> # Contributor: Andrea Scarpino <andrea@archlinux.org> -pkgbase=kate -pkgname=(kwrite kate) -pkgver=22.04.3 +pkgname=kate +pkgver=22.08.0 pkgrel=1 arch=(x86_64) license=(GPL LGPL FDL) -makedepends=(extra-cmake-modules kdoctools plasma-framework knewstuff ktexteditor kactivities kuserfeedback) -source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgbase-$pkgver.tar.xz{,.sig}) -sha256sums=('6e3e4f78c8c2b6a68ce8122dbcd1f1222ec18dd17aa1b4b155989a4659c8d436' +pkgdesc='Advanced text editor' +groups=(kde-applications kde-utilities) +url='https://apps.kde.org/kate/' +depends=(knewstuff ktexteditor kactivities kuserfeedback hicolor-icon-theme) +optdepends=('konsole: open a terminal in Kate' + 'clang: C and C++ LSP support' + 'python-lsp-server: Python LSP support' + 'texlab: LaTeX LSP support' + 'rust: Rust LSP support' + 'git: git-blame plugin' + 'markdownpart: Markdown preview' + 'svgpart: SVG preview') +makedepends=(extra-cmake-modules kdoctools plasma-framework) +conflicts=(kwrite) +provides=(kwrite) +replaces=(kwrite) +source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig}) +sha256sums=('2fd9b131e13a9598ab8358a5eaa33ea56ce6740a1ce18a5691334827886bb788' 'SKIP') validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org> F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 # Christoph Feck <cfeck@kde.org> @@ -18,42 +32,11 @@ validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aac options=(debug) build() { - cmake -B build -S $pkgbase-$pkgver \ + cmake -B build -S $pkgname-$pkgver \ -DBUILD_TESTING=OFF cmake --build build } -package_kwrite() { - pkgdesc='Text Editor' - groups=(kde-applications kde-utilities) - url='https://apps.kde.org/kwrite/' - depends=(ktexteditor hicolor-icon-theme) - - DESTDIR="$pkgdir" cmake --install build - - 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,tabswitcherplugin}.mo \ - "$pkgdir"/usr/share/plasma/plasmoids -} - -package_kate() { - pkgdesc='Advanced Text Editor' - groups=(kde-applications kde-utilities) - url='https://apps.kde.org/kate/' - depends=(knewstuff ktexteditor kactivities kuserfeedback hicolor-icon-theme) - optdepends=('konsole: open a terminal in Kate' - 'clang: C and C++ LSP support' - 'python-lsp-server: Python LSP support' - 'texlab: LaTeX LSP support' - 'rust: Rust LSP support' - 'git: git-blame plugin' - 'markdownpart: Markdown preview' - 'svgpart: SVG preview') +package() { DESTDIR="$pkgdir" cmake --install build - - find "$pkgdir" -type f -name '*kwrite*' -exec rm {} \; - rm -r "$pkgdir"/usr/share/doc/HTML/*/kwrite }