mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 09:27:15 +08:00
75 lines
2.6 KiB
Bash
75 lines
2.6 KiB
Bash
#contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/kate
|
|
|
|
pkgbase=kate
|
|
pkgname=('kate' 'kwrite')
|
|
pkgver=18.12.1
|
|
pkgrel=1
|
|
pkgdesc='Advanced editor component which is used in numerous KDE applications requiring a text editing component'
|
|
arch=('x86_64')
|
|
license=('GPL' 'LGPL' 'FDL')
|
|
makedepends=(extra-cmake-modules kdoctools plasma-framework knewstuff ktexteditor
|
|
threadweaver kitemmodels kactivities python3)
|
|
options=('debug')
|
|
source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgbase-$pkgver.tar.xz"{,.sig})
|
|
sha256sums=('67c21c729cfbf26f99250fc0a0a56ed7873a51bc61c2de6eb90662e7444e325d'
|
|
'SKIP')
|
|
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org>
|
|
F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>
|
|
|
|
prepare() {
|
|
mkdir build
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake ../${pkgbase}-${pkgver} \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DKDE_INSTALL_LIBDIR=lib \
|
|
-DKDE_INSTALL_SYSCONFDIR=/etc \
|
|
-DKDE_INSTALL_LIBEXECDIR=lib \
|
|
-DUDEV_RULES_INSTALL_DIR=/usr/lib/udev/rules.d \
|
|
-DBUILD_TESTING=OFF \
|
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@"
|
|
make
|
|
}
|
|
|
|
package_kwrite() {
|
|
pkgdesc="Text Editor"
|
|
groups=('kde')
|
|
url="http://www.kde.org/applications/utilities/kwrite/"
|
|
depends=(ktexteditor kactivities hicolor-icon-theme)
|
|
screenshot="https://www.kde.org/images/screenshots/kwrite.png"
|
|
replaces=('kde-baseapps-kwrite')
|
|
conflicts=('kde-baseapps-kwrite')
|
|
provides=('kde-baseapps-kwrite')
|
|
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
find "$pkgdir" -type f -name '*kate*' -exec rm {} \;
|
|
rm -r "$pkgdir"/usr/lib/qt5/plugins/ktexteditor \
|
|
"$pkgdir"/usr/share/doc/HTML/*/{kate,katepart} \
|
|
"$pkgdir"/usr/share/katexmltools \
|
|
"$pkgdir"/usr/share/locale/*/LC_MESSAGES/{kterustcompletion,tabswitcherplugin,ktexteditorpreviewplugin}.mo \
|
|
"$pkgdir"/usr/share/plasma/plasmoids
|
|
}
|
|
|
|
package_kate() {
|
|
pkgdesc="Advanced Text Editor"
|
|
groups=('kde')
|
|
url="http://www.kde.org/applications/utilities/kate/"
|
|
depends=(knewstuff ktexteditor threadweaver kitemmodels kactivities hicolor-icon-theme)
|
|
screenshot="https://www.kde.org/images/screenshots/kate.png"
|
|
replaces=('kdesdk-kate')
|
|
conflicts=('kdesdk-kate')
|
|
provides=('kdesdk-kate')
|
|
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
|
|
}
|