# $Id: PKGBUILD 131721 2015-04-19 16:07:11Z arojas $
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Peter Lewis <plewis@aur.archlinux.org>
# Contributor: linuxSEAT <--put_my_name_here--@gmail.com>
# Contributor: Le_J <clej37 at gmail dot com>

pkgname=ktikz
pkgver=0.10
pkgrel=7
pkgdesc="A small application helping you to create TikZ diagrams (from the LaTeX pgf package)"
arch=('i686' 'x86_64')
url="http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language/"
license=('GPL')
depends=('poppler-qt4' 'kdebase-runtime')
makedepends=('automoc4' 'cmake' 'docbook-xml')
install=$pkgname.install
source=("https://launchpad.net/ubuntu/+archive/primary/+files/ktikz_$pkgver.orig.tar.gz")
md5sums=('e8f0826cba2447250bcdcd389a71a2ac')

build() {
  cd $pkgname

  cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
  make
}

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