core/syntax-highlighting/PKGBUILD

35 lines
861 B
Bash
Raw Normal View History

2016-11-13 18:53:40 +08:00
source ../frameworks.conf
pkgname=syntax-highlighting
pkgver=${KFVersion}
2017-04-12 05:22:44 +08:00
pkgrel=1
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")
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
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
}