# $Id: PKGBUILD 125763 2015-01-11 17:50:14Z arojas $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: shamrok <szamrok@gmail.com>
# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
# Contributor: Adrià Arrufat <swiftscythe@gmail.com>

pkgname=krecipes
pkgver=2.0.0
_pkgver=2.0.0
pkgrel=1
pkgdesc="A tool designed to make organizing your personal recipes collection fast and easy"
arch=('i686' 'x86_64')
url="http://extragear.kde.org/apps/krecipes/"
license=('GPL')
depends=('kdebase-runtime' 'qimageblitz' 'hicolor-icon-theme')
makedepends=('cmake' 'automoc4' 'docbook-xsl')
optdepends=('mariadb' 'postgresql')
install=${pkgname}.install
source=("http://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-$pkgver-1.tar.xz")
md5sums=('dbd40f4352ce885ff0e81242c69bf0fc')

build() {
  cd ${srcdir}

  mkdir build
  cd build

  cmake ../$pkgname-$pkgver \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd ${srcdir}/build

  make DESTDIR=${pkgdir} install
}
