# $Id: PKGBUILD 241634 2015-06-30 21:13:14Z arojas $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=kteatime
pkgver=15.04.3
pkgrel=1
pkgdesc='Tea Cooker'
url='http://kde.org/applications/games/kteatime/'
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kde-applications' 'kdetoys')
depends=('knotifyconfig')
makedepends=('extra-cmake-modules' 'kdoctools' 'python')
conflicts=('kdetoys-kteatime')
replaces=('kdetoys-kteatime')
install=${pkgname}.install
source=("http://download.kde.org/stable/applications/${pkgver}/src/kteatime-${pkgver}.tar.xz")
sha1sums=('e52399d6c63e339f9f47dd9c2f2971d2f58b1f84')

build() {
  mkdir build
  cd build
  cmake ../kteatime-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_TESTING=OFF \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
  make
}

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