# $Id: PKGBUILD 237619 2015-04-19 15:56:52Z arojas $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=kteatime
pkgver=15.04.0
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=('5c05a6f6fb03ccc6d1b3fc509dba63865353ceb3')

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
}
