2017-08-03 20:14:04 +00:00
|
|
|
pkgname=syntax-highlighting
|
2017-08-14 23:23:23 +00:00
|
|
|
pkgver=5.37.0
|
2017-08-03 20:14:04 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='Syntax highlighting engine for structured text and code'
|
|
|
|
arch="all"
|
|
|
|
url='https://community.kde.org/Frameworks'
|
|
|
|
license="GPL2"
|
|
|
|
depends="qt5-qtbase"
|
2017-08-17 16:19:36 +00:00
|
|
|
makedepends="extra-cmake-modules qt5-qttools-dev doxygen"
|
2017-08-03 20:14:04 +00:00
|
|
|
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz
|
2017-08-17 16:19:36 +00:00
|
|
|
apkbuild-syntax-highlight.patch
|
|
|
|
remove-broken-regex.patch"
|
2017-08-14 23:23:23 +00:00
|
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
|
2017-08-03 20:14:04 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p $srcdir/build
|
|
|
|
|
|
|
|
# Add APKBUILD syntax highlighting
|
|
|
|
cd "$srcdir"/$pkgname-$pkgver
|
|
|
|
patch -p1 -i ../apkbuild-syntax-highlight.patch
|
2017-08-17 16:19:36 +00:00
|
|
|
patch -p1 -i ../remove-broken-regex.patch
|
2017-08-03 20:14:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/build
|
|
|
|
cmake "$srcdir"/$pkgname-$pkgver \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DBUILD_TESTING=OFF \
|
|
|
|
-DBUILD_QCH=ON
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/build
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|
2017-08-14 23:23:23 +00:00
|
|
|
sha512sums="d49f62934283c07c1b6e8fad11b9fa469b21bb55f35ddbc6c28ab29bd79b7cba67a93d0b46abb8b3d86ee7ba7a90ea50a98553aac7bdfe396bc2b010611c24c2 syntax-highlighting-5.37.0.tar.xz
|
2017-08-17 16:19:36 +00:00
|
|
|
0722d3c44c52f70eae5636c7f912e8e53491a728c96968705c14621fb38749583d855ffdf07ea84cecfcfce0e6c295fe500a06190f7bc82082d67986d879f66e apkbuild-syntax-highlight.patch
|
|
|
|
8a94d1c88736d8b3783588637e255a6ec81064fd9d6716eb5ace63161e29b986d58829f83c08816c652aa0a34974ad83f3a91c6cadb7974c6e19e160734e8052 remove-broken-regex.patch"
|