desktop/plasma-desktop/PKGBUILD
2014-07-28 19:30:42 +00:00

41 lines
947 B
Bash

source ../plasma.conf
pkgname=plasma-desktop
pkgver=${PVersion}
pkgrel=4
pkgdesc="Plasma Desktop"
arch=('i686' 'x86_64')
url='http://projects.kde.org'
license=('LGPL')
depends=('qt5-base' 'qt5-declarative' 'qt5-x11extras' 'kwallet' 'krunner' 'kdesu' 'knotifyconfig' 'kdelibs4support' 'kemoticons' 'knewstuff' 'kcmutils' 'kwin' 'plasma-workspace' 'xorg-server')
makedepends=('extra-cmake-modules')
checkdepends=("cmake")
groups=('plasma')
options=("debug")
source=("${PServer}/${pkgver}/${pkgname}-${pkgver}.tar.xz")
sha256sums=( $(getSum ${pkgname}) )
prepare() {
mkdir -p build
sed -e "s/PO_FILES //" -i ${srcdir}/$pkgname-$pkgver/po/*/CMakeLists.txt
}
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
}