2015-02-24 06:26:16 +08:00
|
|
|
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/ktexteditor
|
2014-11-15 06:35:29 +08:00
|
|
|
source ../frameworks.conf
|
|
|
|
|
|
|
|
pkgname=ktexteditor
|
|
|
|
pkgver=${KFVersion}
|
2016-11-13 20:28:51 +08:00
|
|
|
pkgrel=2
|
2014-11-15 06:35:29 +08:00
|
|
|
pkgdesc='Advanced embeddable text editor'
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://projects.kde.org/projects/frameworks/ktexteditor'
|
|
|
|
license=('LGPL')
|
2016-11-13 20:28:51 +08:00
|
|
|
depends=('kparts' 'libgit2')
|
2014-11-15 06:49:31 +08:00
|
|
|
makedepends=("extra-cmake-modules>=${KFECMVersion}")
|
2014-11-15 06:35:29 +08:00
|
|
|
groups=('kf5')
|
|
|
|
options=("debug")
|
2016-09-14 04:57:28 +08:00
|
|
|
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz"
|
2016-09-18 19:11:53 +08:00
|
|
|
"git://anongit.kde.org/ktexteditor#branch=master" # We only need the syntax upadates here
|
2016-09-14 04:57:28 +08:00
|
|
|
'pkgbuild-syntax-highlight.patch')
|
|
|
|
sha256sums=( $(getSum ${pkgname})
|
2016-09-18 19:11:53 +08:00
|
|
|
'SKIP'
|
|
|
|
'3ac25ae5f7a4956ae7bed6e79607a4ab5021875fd198fe348a1712db71a25b96')
|
2014-11-15 06:35:29 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
2016-09-14 04:57:28 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
2016-09-18 19:11:53 +08:00
|
|
|
rm -rfv src/syntax/data
|
|
|
|
cp -rv ${srcdir}/${pkgname}/src/syntax/data src/syntax
|
|
|
|
patch -Np1 -i "${srcdir}"/pkgbuild-syntax-highlight.patch
|
2014-11-15 06:35:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
2015-02-24 06:26:16 +08:00
|
|
|
cmake_kf5 ../${pkgname}-${pkgver}
|
2014-11-15 06:35:29 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|