PKGBUILD 890 Bytes
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}
6
pkgrel=2
Xuetian Weng's avatar
Xuetian Weng committed
7 8 9 10 11
pkgdesc='Advanced embeddable text editor'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/ktexteditor'
license=('LGPL')
depends=('kparts' 'libgit2')
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 16 17 18
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz"
	'pkgbuild-syntax-highlight.patch')
sha256sums=( $(getSum ${pkgname})
            '7d898e9aeb8faa7d6ea2e9c4b288d895261645aa6856ca56b7c03ee3caa93cdc')
Xuetian Weng's avatar
Xuetian Weng committed
19 20 21

prepare() {
  mkdir -p build
AlmAck's avatar
AlmAck committed
22

23 24
  cd ${pkgname}-${pkgver}
  patch -p0 -i "${srcdir}"/pkgbuild-syntax-highlight.patch
Xuetian Weng's avatar
Xuetian Weng committed
25 26 27 28
}

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

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