summaryrefslogtreecommitdiff
path: root/kde-unstable/kdebindings-smokegen/PKGBUILD
blob: ba2b2146f26c2d8ee638b4bd43c70fff92d276fe (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
# $Id: PKGBUILD 144759 2011-12-08 10:24:16Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=kdebindings-smokegen
pkgver=4.7.90
pkgrel=1
pkgdesc="A general purpose C++ parser with a plugin infrastructure"
url="http://kde.org/"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
depends=('kdebase-runtime')
makedepends=('cmake' 'automoc4')
conflicts=('kdebindings-smoke')
source=("http://download.kde.org/unstable/${pkgver}/src/smokegen-${pkgver}.tar.bz2"
        'fix-crash.patch')
sha1sums=('c852cf97a7b2d7516a4995d19ad3be6035aa0c17'
          'b209b2b7017622fea3406c5a9636e2334566af01')

build() {
  cd "${srcdir}"/smokegen-${pkgver}
  patch -p1 -i "${srcdir}"/fix-crash.patch

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

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