desktop/kate/PKGBUILD

74 lines
2.2 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
pkgname=('kwrite'
'kate')
pkgver=18.08.3
2016-05-13 04:57:22 +08:00
pkgrel=1
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')
depends=('knewstuff' 'ktexteditor' 'threadweaver' 'kded' 'kitemmodels')
makedepends=('extra-cmake-modules' 'kdoctools' 'python3' 'plasma-framework')
optdepends=('kio-extras: extra protocols support (sftp, fish and more)')
2015-08-15 16:32:44 +08:00
options=('docs' 'debug')
2018-08-14 04:34:43 +08:00
source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgbase-$pkgver.tar.xz"{,.sig})
sha256sums=('d0a95d777f7638ffb6ba4e6b064c1eee79f291d01945e93286e708d7a05fd811'
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} \
-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
}
2015-02-23 23:08:49 +08:00
package_kwrite() {
pkgdesc="Text Editor"
groups=('kde')
url="http://www.kde.org/applications/utilities/kwrite/"
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')
cd build/kwrite
make DESTDIR="${pkgdir}" install
cd ../../build/doc/kwrite
make DESTDIR="${pkgdir}" install
}
2015-02-23 23:08:49 +08:00
package_kate() {
pkgdesc="Advanced Text Editor"
groups=('kde')
url="http://www.kde.org/applications/utilities/kate/"
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')
cd build/kate
make DESTDIR="${pkgdir}" install
cd ../../build/doc/kate
make DESTDIR="${pkgdir}" install
cd ../../../build/addons
make DESTDIR="${pkgdir}" install
}