# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=kube
pkgver=0.7.0
pkgrel=5
pkgdesc="A modern groupware client based on QtQuick and Sink"
arch=(x86_64)
url="https://kube.kde.org/"
license=(LGPL)
depends=(sink gpgme qt5-quickcontrols2 qt5-webengine qt5-quickcontrols)
makedepends=(extra-cmake-modules)
source=("https://download.kde.org/unstable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.xz")
sha256sums=('6f3dc84548dcf3e432a592e44717132a282d107d32c82560a2c5495c678a874f')

prepare() {
  mkdir -p build

  sed -e '/KDECompilerSettings/d' -i $pkgname-$pkgver/CMakeLists.txt # Don't enforce c++11
}

build() {
  cd build
  cmake ../$pkgname-$pkgver \
    -DBUILD_TESTING=OFF
  make
}

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