desktop/kate/PKGBUILD

68 lines
1.8 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-04-29 22:13:57 +08:00
source ../kdeapps.conf
2015-02-23 23:08:49 +08:00
pkgbase=kate
pkgname=('kwrite'
'kate')
pkgver=${_kdever}
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')
source=("$_mirror/${pkgbase}-$_kdever.tar.xz"{,.sig})
sha256sums=("`grep ${pkgbase}-$_kdever.tar.xz ../kdeapps.sums | cut -d " " -f1`"
'SKIP')
validpgpkeys=(${Avalidpgpkeys})
prepare() {
2015-02-23 23:08:49 +08:00
mkdir build
}
build() {
cd build
2015-04-29 22:13:57 +08:00
cmake_kf5 ../${pkgbase}-${pkgver}
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
install='kwrite.install'
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-08-15 16:32:44 +08:00
install='kate.install'
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
}