summaryrefslogtreecommitdiff
path: root/extra/kdesdk-kate/PKGBUILD
blob: d256b0c3151bc456600cb8153028f50b3e238bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $Id: PKGBUILD 144748 2011-12-08 09:52:57Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgbase=kdesdk-kate
pkgname=('kdebase-kwrite'
         'kdesdk-kate')
pkgver=4.7.4
pkgrel=1
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
makedepends=('kdelibs ''cmake' 'automoc4')
source=("http://download.kde.org/stable/${pkgver}/src/kate-${pkgver}.tar.bz2"
        'pkgbuild-syntax-highlight.patch')
sha1sums=('b808f01213e0e44607e8f2577f9d1b4f88e14388'
          'ab0c5d2a796b0f283154799add161c99f48ffcd5')

build() {
  cd "${srcdir}"/kate-${pkgver}
  patch -p1 -i "${srcdir}"/pkgbuild-syntax-highlight.patch

  cd "${srcdir}"
  mkdir build
  cd build
  cmake ../kate-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_KTEXTEDITOR=OFF
  make
}

package_kdebase-kwrite() {
  pkgdesc="Text Editor"
  depends=('kdebase-runtime')
  groups=('kde' 'kdebase')
  install='kdebase-kwrite.install'

  cd "${srcdir}"/build/kwrite
  make DESTDIR="${pkgdir}" install

  cd "${srcdir}"/build/part
  make DESTDIR="${pkgdir}" install

  cd "${srcdir}"/build/doc/kwrite
  make DESTDIR="${pkgdir}" install
}

package_kdesdk-kate() {
  pkgdesc="Advanced Text Editor"
  depends=('kdebase-kwrite')
  groups=('kde' 'kdesdk')
  install='kdesdk-kate.install'

  cd "${srcdir}"/build/kate
  make DESTDIR="${pkgdir}" install

  cd "${srcdir}"/build/doc/kate
  make DESTDIR="${pkgdir}" install
}