PKGBUILD 1000 Bytes
Newer Older
Xuetian Weng's avatar
Xuetian Weng committed
1 2 3 4 5 6 7 8 9 10 11 12
# Contributor: Andrea Scarpino <andrea@archlinux.org>

source ../frameworks.conf

pkgname=ktexteditor
pkgver=${KFVersion}
pkgrel=1
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
13
makedepends=("extra-cmake-modules>=${KFECMVersion}")
Xuetian Weng's avatar
Xuetian Weng committed
14 15
groups=('kf5')
options=("debug")
16 17 18 19
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz"
        'pkgbuild-syntax-highlight.patch')
sha256sums=(" $(getSum ${pkgname})" 
            '5c4254fb21bde173273b47dc36d317c2dd2769a42a21a70962356d38e832d0b7')
Xuetian Weng's avatar
Xuetian Weng committed
20 21 22

prepare() {
  mkdir -p build
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 30 31 32 33 34
  cmake_kf5 ../${pkgname}-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIB_INSTALL_DIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
    -DBUILD_TESTING=OFF
Xuetian Weng's avatar
Xuetian Weng committed
35 36 37 38 39 40 41
  make
}

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