PKGBUILD 1.19 KB
Newer Older
Luca Giambonini's avatar
Luca Giambonini committed
1 2

pkgname=syntax-highlighting
3
pkgver=5.46.0
4
pkgrel=1
Luca Giambonini's avatar
Luca Giambonini committed
5 6 7 8 9
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')
Luca Giambonini's avatar
Luca Giambonini committed
10
makedepends=("extra-cmake-modules>=${KFECMVersion}" 'python3' 'qt5-tools')
Luca Giambonini's avatar
Luca Giambonini committed
11 12
groups=('kf5')
options=("debug")
Luca Giambonini's avatar
Luca Giambonini committed
13
_url="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
14 15 16 17
source=(${_url}{,.sig})
sha256sums=($(curl "$_url.sha256" | cut -c-64)
            SKIP)
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
Luca Giambonini's avatar
Luca Giambonini committed
18 19 20

prepare() {
  mkdir -p build
Luca Giambonini's avatar
Luca Giambonini committed
21 22 23
  cd ${pkgname}-${pkgver}
  # syntax highlighting for PKGBUILD files
  sed -i -e 's|.bash_login;.profile|.bash_login;.profile;PKGBUILD|' data/syntax/bash.xml
Luca Giambonini's avatar
Luca Giambonini committed
24 25 26 27
}

build() {
  cd build
28
  cmake ../${pkgname}-${pkgver} \
Luca Giambonini's avatar
Luca Giambonini committed
29
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
30 31 32 33 34 35
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DKDE_INSTALL_LIBDIR=lib \
        -DKDE_INSTALL_SYSCONFDIR=/etc \
        -DKDE_INSTALL_LIBEXECDIR=lib \
        -DBUILD_TESTING=OFF \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@"
Luca Giambonini's avatar
Luca Giambonini committed
36 37 38 39 40 41 42
  make
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}