core/plasma-workspace/PKGBUILD
2015-11-07 14:56:38 +00:00

64 lines
2.0 KiB
Bash

#contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/plasma-workspace
source ../plasma.conf
pkgbase=plasma-workspace
pkgname=('plasma-workspace' 'drkonqi')
pkgver=${PVersion}
pkgrel=1
pkgdesc='KDE Plasma Workspace'
arch=('x86_64')
url='https://projects.kde.org/projects/kde/workspace/plasma-workspace'
license=('LGPL')
depends=('knewstuff' 'kjsembed' 'knotifyconfig' 'libxdamage' 'kwayland' 'kglobalaccel'
'libksysguard' 'libkscreen' 'ktexteditor' 'kxmlrpcclient' 'libqalculate' 'networkmanager-qt' 'kfilemetadata'
'qt5-tools' 'kded' 'kde-cli-tools' 'xorg-xrdb' 'xorg-xsetroot' 'xorg-apps' 'xorg-utils'
'prison' 'milou' 'chakra-common')
makedepends=('extra-cmake-modules' 'kdoctools' 'kwin' 'gpsd' 'baloo' 'krunner' 'kdewebkit')
groups=('plasma')
options=("debug")
source=("${PServer}/${pkgver}/${pkgname}-${PSubVersion}.tar.xz"
'kde.pam'
'use-dbus-autolaunch.patch')
sha256sums=( $(getSum ${pkgname} | head -n1)
'44a7c7acee30547dd41d0a593486b29df4eaa5c3707287b87e23b1104de3964a'
'5c5c5cf06e8c80a22401ed5246ad1b99e529ef935d44fb60ae353dbf8ff632eb')
prepare() {
mkdir -p build
cd ${pkgbase}-${pkgver}
# sends env vars to existing dbus
patch -p1 -i "${srcdir}"/use-dbus-autolaunch.patch
# be sure to use the Qt5 version of qtpaths
sed -i 's:qtpaths:qtpaths-qt5:' startkde/startkde.cmake
}
build() {
cd build
cmake_kf5 ../${pkgbase}-${pkgver}
make
}
package_plasma-workspace() {
optdepends=('plasma-workspace-wallpapers: additional wallpapers'
'gpsd: GPS based geolocation' 'networkmanager-qt: IP based geolocation')
cd build
make DESTDIR="${pkgdir}" install
install -Dm644 "${srcdir}"/kde.pam \
"${pkgdir}"/etc/pam.d/kde
# Remove conflicts with drkonqi
rm "${pkgdir}"/usr/lib/drkonqi
rm -r "${pkgdir}"/usr/share/drkonqi
}
package_drkonqi() {
pkgdesc='KDE crash handler'
depends=('kdewebkit' 'kxmlrpcclient' 'gdb')
cd build/drkonqi
make DESTDIR="${pkgdir}" install
}