desktop/libkscreen-kf5/PKGBUILD

43 lines
977 B
Bash
Raw Normal View History

# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/libkscreen-frameworks
2014-06-22 20:14:05 +08:00
source ../plasma.conf
2014-10-23 03:29:25 +08:00
pkgname=libkscreen-kf5
2014-06-22 20:14:05 +08:00
_pkgname=libkscreen
2014-10-23 03:29:25 +08:00
pkgver=${PVersion}
pkgrel=1
2014-12-01 14:48:37 +08:00
pkgdesc='KDE screen management software'
arch=('x86_64')
2014-12-01 14:48:37 +08:00
url='https://projects.kde.org/projects/extragear/libs/libkscreen'
2014-06-22 20:14:05 +08:00
license=('LGPL')
2014-12-01 14:48:37 +08:00
depends=('qt5-x11extras' 'libxrandr')
2014-06-22 20:14:05 +08:00
makedepends=('extra-cmake-modules')
groups=('plasma')
options=("debug")
2014-10-23 03:29:25 +08:00
source=("${PServer}/${pkgver}/${_pkgname}-${PSubVersion}.tar.xz")
sha256sums=( $(getSum ${_pkgname}) )
2014-06-22 20:14:05 +08:00
2014-10-23 03:29:25 +08:00
replaces=('libkscreen2')
provides=('libkscreen2')
2014-06-22 20:14:05 +08:00
prepare() {
mkdir -p build
}
build() {
cd build
cmake_kf5 ../${_pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=lib \
-DLIBEXEC_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF
2014-06-22 20:14:05 +08:00
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}