2016-11-13 18:53:40 +08:00
|
|
|
source ../frameworks.conf
|
|
|
|
|
|
|
|
pkgname=syntax-highlighting
|
|
|
|
pkgver=${KFVersion}
|
2017-03-14 05:31:16 +08:00
|
|
|
pkgrel=2
|
2016-11-13 18:53:40 +08:00
|
|
|
pkgdesc='Syntax highlighting Engine for Structured Text and Code.'
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://projects.kde.org/projects/frameworks/syntax-highlighting'
|
|
|
|
license=('LGPL')
|
|
|
|
depends=('qt5-xmlpatterns' 'perl')
|
2017-01-11 07:50:27 +08:00
|
|
|
makedepends=("extra-cmake-modules>=${KFECMVersion}" 'python3' 'qt5-tools')
|
2016-11-13 18:53:40 +08:00
|
|
|
groups=('kf5')
|
|
|
|
options=("debug")
|
2016-11-13 20:28:09 +08:00
|
|
|
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz"
|
|
|
|
'pkgbuild-syntax-highlight.patch')
|
|
|
|
sha256sums=( $(getSum ${pkgname})
|
|
|
|
'3ac25ae5f7a4956ae7bed6e79607a4ab5021875fd198fe348a1712db71a25b96')
|
2016-11-13 18:53:40 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
2016-11-13 20:28:09 +08:00
|
|
|
cd ${pkgname}-${pkgver}/data/syntax
|
|
|
|
patch -Np4 -i ${srcdir}/pkgbuild-syntax-highlight.patch
|
2016-11-13 18:53:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
|
|
|
cmake_kf5 ../${pkgname}-${pkgver}
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|