2014-06-22 20:50:43 +08:00
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
|
|
|
|
source ../plasma.conf
|
|
|
|
|
|
|
|
pkgname=kwin
|
|
|
|
pkgver=${PVersion}
|
2014-08-13 05:28:08 +08:00
|
|
|
pkgrel=1
|
2014-12-01 13:27:04 +08:00
|
|
|
pkgdesc='KDE Window manager'
|
2014-10-23 03:29:25 +08:00
|
|
|
arch=('x86_64')
|
2014-12-01 13:27:04 +08:00
|
|
|
url='https://projects.kde.org/projects/kde/workspace/kwin'
|
2014-06-22 20:50:43 +08:00
|
|
|
license=('LGPL')
|
2014-10-23 03:29:25 +08:00
|
|
|
depends=('qt5-multimedia' 'plasma-framework' 'knewstuff' 'libxcursor' 'kinit'
|
2014-12-01 13:27:04 +08:00
|
|
|
'hicolor-icon-theme' 'libepoxy' 'kwayland')
|
2014-10-23 03:29:25 +08:00
|
|
|
makedepends=('extra-cmake-modules' 'qt5-tools' 'kdoctools')
|
2014-12-01 13:27:04 +08:00
|
|
|
checkdepends=("cmake" "xorg-server-xvfb")
|
2014-06-22 20:50:43 +08:00
|
|
|
groups=('plasma')
|
2014-12-01 13:27:04 +08:00
|
|
|
install=${pkgname}.install
|
|
|
|
conflicts=('kde-workspace')
|
2014-06-22 20:50:43 +08:00
|
|
|
options=("debug")
|
2014-10-23 03:29:25 +08:00
|
|
|
source=("${PServer}/${pkgver}/${pkgname}-${PSubVersion}.tar.xz")
|
2014-06-22 20:50:43 +08:00
|
|
|
sha256sums=( $(getSum ${pkgname}) )
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
2014-12-01 13:27:04 +08:00
|
|
|
cmake_kf5 ../${pkgname}-${pkgver}
|
2014-06-22 20:50:43 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd build
|
2014-12-01 13:27:04 +08:00
|
|
|
# some test need kwin to be installed (service type)
|
|
|
|
xvfb-run -s "-screen 0 640x480x24" make test || return 0
|
2014-06-22 20:50:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|