core/kscreen-kf5/PKGBUILD

43 lines
853 B
Bash
Raw Normal View History

2015-01-15 05:23:15 +08:00
# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../plasma.conf
pkgname=kscreen-kf5
_pkgname=kscreen
pkgver=${PVersion}
pkgrel=1
pkgdesc="Manage screen resolution"
arch=('x86_64')
url='projects.kde.org/'
license=('LGPL')
depends=('qt5-declarative' 'qt5-x11extras' 'libkscreen-kf5' 'kdbusaddons' 'kconfig' 'ki18n' 'kxmlgui' 'kglobalaccel')
makedepends=('extra-cmake-modules' 'kdoctools' 'python3')
checkdepends=("cmake")
groups=('plasma')
options=("debug")
source=("${PServer}/${pkgver}/${_pkgname}-${PSubVersion}.tar.xz")
sha256sums=( $(getSum ${_pkgname}) )
prepare() {
mkdir -p build
cd ${_pkgname}-${pkgver}
}
build() {
cd build
cmake_kf5 ../${_pkgname}-${pkgver} \
-DPYTHON_EXECUTABLE=/usr/bin/python3
make
}
check() {
cd build
make test || return 0
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}