desktop/kwin/PKGBUILD
2014-10-22 19:29:25 +00:00

43 lines
911 B
Bash

# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../plasma.conf
pkgname=kwin
pkgver=${PVersion}
pkgrel=1
pkgdesc="A versative window manager"
arch=('x86_64')
url='projects.kde.org/'
license=('LGPL')
depends=('qt5-multimedia' 'plasma-framework' 'knewstuff' 'libxcursor' 'kinit'
'hicolor-icon-theme' 'libepoxy') #'kwayland' update wayland °1.6 first
makedepends=('extra-cmake-modules' 'qt5-tools' 'kdoctools')
checkdepends=("cmake")
groups=('plasma')
options=("debug")
source=("${PServer}/${pkgver}/${pkgname}-${PSubVersion}.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
}