desktop/kate/PKGBUILD

75 lines
2.6 KiB
Bash
Raw Normal View History

2015-02-23 23:08:49 +08:00
#contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/kate
2015-02-23 23:08:49 +08:00
pkgbase=kate
2019-01-08 08:14:50 +08:00
pkgname=('kwrite' 'kate')
2018-12-14 07:27:16 +08:00
pkgver=18.12.0
2019-01-08 08:14:50 +08:00
pkgrel=2
pkgdesc='Advanced editor component which is used in numerous KDE applications requiring a text editing component'
arch=('x86_64')
2015-02-23 23:08:49 +08:00
license=('GPL' 'LGPL' 'FDL')
2019-01-08 08:14:50 +08:00
makedepends=(extra-cmake-modules kdoctools plasma-framework knewstuff ktexteditor
threadweaver kitemmodels kactivities python3)
options=('debug')
2018-08-14 04:34:43 +08:00
source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgbase-$pkgver.tar.xz"{,.sig})
2018-12-14 07:27:16 +08:00
sha256sums=('14991164207cededb14c778837969a391d117eb484a871666598867ae3366696'
2018-06-18 02:07:39 +08:00
'SKIP')
2018-06-18 00:14:15 +08:00
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org>
F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>
prepare() {
2015-02-23 23:08:49 +08:00
mkdir build
}
build() {
cd build
2018-06-18 00:44:54 +08:00
cmake ../${pkgbase}-${pkgver} \
2019-01-08 08:14:50 +08:00
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
2018-06-18 00:44:54 +08:00
-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
}
2015-02-23 23:08:49 +08:00
package_kwrite() {
pkgdesc="Text Editor"
groups=('kde')
url="http://www.kde.org/applications/utilities/kwrite/"
2019-01-08 08:14:50 +08:00
depends=(ktexteditor kactivities hicolor-icon-theme)
2015-04-29 22:13:57 +08:00
screenshot="https://www.kde.org/images/screenshots/kwrite.png"
2015-02-23 23:08:49 +08:00
replaces=('kde-baseapps-kwrite')
conflicts=('kde-baseapps-kwrite')
provides=('kde-baseapps-kwrite')
2019-01-08 08:14:50 +08:00
cd build
make DESTDIR="$pkgdir" install
2015-02-23 23:08:49 +08:00
2019-01-08 08:14:50 +08:00
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
}
2015-02-23 23:08:49 +08:00
package_kate() {
pkgdesc="Advanced Text Editor"
groups=('kde')
url="http://www.kde.org/applications/utilities/kate/"
2019-01-08 08:14:50 +08:00
depends=(knewstuff ktexteditor threadweaver kitemmodels kactivities hicolor-icon-theme)
2015-04-29 22:13:57 +08:00
screenshot="https://www.kde.org/images/screenshots/kate.png"
2015-02-23 23:08:49 +08:00
replaces=('kdesdk-kate')
conflicts=('kdesdk-kate')
provides=('kdesdk-kate')
optdepends=('konsole: open a terminal in Kate')
2019-01-08 08:14:50 +08:00
cd build
make DESTDIR="$pkgdir" install
2015-02-23 23:08:49 +08:00
2019-01-08 08:14:50 +08:00
find "$pkgdir" -type f -name '*kwrite*' -exec rm {} \;
rm -r "$pkgdir"/usr/share/doc/HTML/*/kwrite
}