# $Id: PKGBUILD 145549 2015-11-02 06:14:44Z fyan $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Bhushan Shah <bshah@kde.org>

pkgname=plasma-maliit-framework
pkgver=0.99.0.20150710
_commit=0e273b3863d3435cfc486cf1aa9dcecfad1e180d
pkgrel=1
pkgdesc="Framework for Maliit integration with Plasma"
arch=('i686' 'x86_64')
license=('GPL')
url="http://projects.kde.org/plasma-maliit-framework"
depends=('qt5-declarative' 'kwayland' 'karchive')
makedepends=('git')
source=("git+https://github.com/KDE/plasma-maliit-framework.git#commit=$_commit")
md5sums=('SKIP')

prepare() {
  mkdir -p build
}

build() {
  cd build
  qmake -makefile \
    CONFIG+=qt5-inputcontext \
    CONFIG+=nohwkeyboard \
    CONFIG+=enable-dbus-activation \
    CONFIG+=notests \
    CONFIG+=nodoc \
    ../plasma-maliit-framework
  make
}

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