# $Id: PKGBUILD 141580 2015-09-24 15:23:32Z arojas $
# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=rsibreak
pkgver=0.12
pkgrel=1
pkgdesc="Takes care of your health and regularly breaks your work to avoid repetitive strain injury (RSI)"
url="https://userbase.kde.org/RSIBreak"
arch=(i686 x86_64)
license=(GPL)
depends=(knotifyconfig kidletime hicolor-icon-theme)
makedepends=(extra-cmake-modules kdoctools)
source=("http://download.kde.org/stable/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz")
install=$pkgname.install
md5sums=('9db9f4a1f421a71f95753ef68c1a857e')

prepare() {
  mkdir -p build
}

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

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

