PKGBUILD 1.08 KB
Newer Older
1
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/ktexteditor
Xuetian Weng's avatar
Xuetian Weng committed
2 3 4 5
source ../frameworks.conf

pkgname=ktexteditor
pkgver=${KFVersion}
AlmAck's avatar
AlmAck committed
6
pkgrel=1
Xuetian Weng's avatar
Xuetian Weng committed
7 8 9 10
pkgdesc='Advanced embeddable text editor'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/ktexteditor'
license=('LGPL')
AlmAck's avatar
AlmAck committed
11
depends=('kparts' 'libgit2' 'syntax-highlighting')
Xuetian Weng's avatar
Xuetian Weng committed
12
makedepends=("extra-cmake-modules>=${KFECMVersion}")
Xuetian Weng's avatar
Xuetian Weng committed
13 14
groups=('kf5')
options=("debug")
15
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz"
16
        "git://anongit.kde.org/ktexteditor#branch=master" # We only need the syntax upadates here
17 18
        'pkgbuild-syntax-highlight.patch')
sha256sums=( $(getSum ${pkgname})
19 20
        'SKIP'
        '3ac25ae5f7a4956ae7bed6e79607a4ab5021875fd198fe348a1712db71a25b96')
Xuetian Weng's avatar
Xuetian Weng committed
21 22 23

prepare() {
  mkdir -p build
24
  cd ${pkgname}-${pkgver}
25 26 27
  rm -rfv src/syntax/data
  cp -rv ${srcdir}/${pkgname}/src/syntax/data src/syntax
  patch -Np1 -i "${srcdir}"/pkgbuild-syntax-highlight.patch
Xuetian Weng's avatar
Xuetian Weng committed
28 29 30 31
}

build() {
  cd build
32
  cmake_kf5 ../${pkgname}-${pkgver} 
Xuetian Weng's avatar
Xuetian Weng committed
33 34 35 36 37 38 39
  make
}

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