summaryrefslogtreecommitdiff
path: root/extra/kdebindings-smokegen/PKGBUILD
blob: 943e70baf12198558e020ec68ac303a58147db0c (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 144619 2011-12-08 09:18:20Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=kdebindings-smokegen
pkgver=4.7.4
pkgrel=1
pkgdesc="A general purpose C++ parser with a plugin infrastructure"
url="http://kde.org/"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL' 'LGPL' 'FDL')
depends=('kdebase-runtime')
makedepends=('cmake' 'automoc4')
conflicts=('kdebindings-smoke')
source=("http://download.kde.org/stable/${pkgver}/src/smokegen-${pkgver}.tar.bz2"
        'fix-crash.patch')
sha1sums=('068d37e2404311b9caa23d78ee7fa262188a8622'
          '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
}