# Contributor: Andrea Scarpino source ../plasma.conf pkgname=kwin pkgver=${PVersion} pkgrel=3 pkgdesc="A versative window manager" arch=('i686' 'x86_64') url='projects.kde.org/' license=('LGPL') depends=('qt5-base' 'qt5-declarative' 'qt5-script' 'qt5-tools' 'qt5-x11extras' 'kwindowsystem' 'kwidgetsaddons' 'kinit' 'knotifications' 'plasma-framework' 'kcmutils' 'knewstuff') makedepends=('extra-cmake-modules') checkdepends=("cmake") groups=('plasma') options=("debug") source=("${PServer}/${pkgver}/${pkgname}-${pkgver}.tar.xz") sha256sums=( $(getSum ${pkgname}) ) prepare() { mkdir -p build } build() { cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=${PBuildType} \ -DCMAKE_INSTALL_PREFIX=${PInstallPrefix} \ -DLIB_INSTALL_DIR=lib make } check() { cd build make test || return 0 } package() { cd build make DESTDIR="${pkgdir}" install }