core/syntax-highlighting/PKGBUILD

34 lines
802 B
Bash
Raw Normal View History

2016-11-13 18:53:40 +08:00
source ../frameworks.conf
pkgname=syntax-highlighting
pkgver=${KFVersion}
2018-01-25 07:42:02 +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")
2017-08-10 06:25:58 +08:00
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum ${pkgname}))
2016-11-13 18:53:40 +08:00
prepare() {
mkdir -p build
2017-08-10 06:25:58 +08:00
cd ${pkgname}-${pkgver}
# syntax highlighting for PKGBUILD files
sed -i -e 's|.bash_login;.profile|.bash_login;.profile;PKGBUILD|' data/syntax/bash.xml
2016-11-13 18:53:40 +08:00
}
build() {
cd build
cmake_kf5 ../${pkgname}-${pkgver}
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}