2014-06-22 20:14:05 +08:00
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
|
|
|
|
source ../plasma.conf
|
|
|
|
|
|
|
|
pkgname=libkscreen2
|
|
|
|
_pkgname=libkscreen
|
2014-07-18 06:19:21 +08:00
|
|
|
pkgver=5.0.91
|
|
|
|
pkgrel=2
|
2014-06-22 20:14:05 +08:00
|
|
|
pkgdesc="KDE's screen management library"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url='projects.kde.org/'
|
|
|
|
license=('LGPL')
|
|
|
|
depends=('qt5-base' 'qt5-x11extras')
|
|
|
|
makedepends=('extra-cmake-modules')
|
|
|
|
checkdepends=("cmake")
|
|
|
|
groups=('plasma')
|
|
|
|
options=("debug")
|
2014-07-18 06:19:21 +08:00
|
|
|
source=("${PServer}/${PVersion}/${_pkgname}-${pkgver}.tar.xz")
|
|
|
|
sha256sums=( $(getSum ${_pkgname}) )
|
2014-06-22 20:14:05 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|