# $Id: PKGBUILD 227083 2014-11-25 08:14:48Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=grantlee-qt4
pkgver=0.5.1
pkgrel=1
pkgdesc="A string template engine based on the Django template system and written in Qt4"
arch=('i686' 'x86_64')
url="https://www.gitorious.org/grantlee/pages/Home"
license=('LGPL3')
depends=('qt4')
makedepends=('cmake' 'doxygen')
replaces=('grantlee')
conflicts=('grantlee')
provides=('grantlee')
source=("http://downloads.grantlee.org/grantlee-${pkgver}.tar.gz")
md5sums=('775f22dac0953029b414ed3b7379098c')

prepare() {
  mkdir build
}

build() {
  cd ../build
  cmake ../grantlee-${pkgver} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_TESTS=OFF \
    -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
  make
}

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