core/plasma-workspace/PKGBUILD
2015-12-15 22:06:37 +01:00

83 lines
2.7 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' 'plasma-wayland-session')
pkgver=${PVersion}
pkgrel=6
pkgdesc='KDE Plasma Workspace'
arch=('x86_64')
url='https://projects.kde.org/projects/kde/workspace/plasma-workspace'
license=('LGPL')
# note on libxdamage:
# not detected by namcap because libgl depends on it
# but nvidia providing libgl does not depend on libxdamage
depends=('kjsembed' 'knotifyconfig' 'libxdamage' 'libksysguard' 'libkscreen' 'ktexteditor' 'libqalculate'
'qt5-tools' 'kded' 'kde-cli-tools' 'xorg-xrdb' 'xorg-xsetroot'
'xorg-apps' 'xorg-utils' 'milou' 'breeze' 'prison-kf5' 'kwin' 'chakra-common')
makedepends=('extra-cmake-modules' 'kdoctools' 'gpsd' 'baloo'
'krunner' 'kxmlrpcclient' 'networkmanager-qt' 'kdewebkit')
groups=('plasma')
options=("debug")
source=("${PServer}/${pkgver}/${pkgname}-${PSubVersion}.tar.xz"
"kde.pam"
"panelview.patch"
"systemtray.patch")
sha256sums=( $(getSum ${pkgname} | head -n1)
"44a7c7acee30547dd41d0a593486b29df4eaa5c3707287b87e23b1104de3964a"
"d2e9ee7da6aabf09ffb7a755046bbc5c073d761024e828b9105fc86a3e2e14ed"
"744bac202c5f877d043be6d36498d3126eec52d473c4116f7140d977e9a4893a")
prepare() {
mkdir -p build
cd ${pkgbase}-${pkgver}
# be sure to use the Qt5 version of qtpaths
sed -e 's:qtpaths:qtpaths-qt5:' -i startkde/start*.cmake
patch -Np1 -i ../panelview.patch
patch -Np1 -i ../systemtray.patch
}
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')
replaces=('xembed-sni-proxy' 'xembed-sni-proxy-git')
provides=('xembed-sni-proxy' 'xembed-sni-proxy-git')
conflicts=('xembed-sni-proxy' 'xembed-sni-proxy-git')
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
# Split plasma-wayland scripts
rm -r "$pkgdir"/usr/share/wayland-sessions
}
package_drkonqi() {
pkgdesc='KDE crash handler'
depends=('kdewebkit' 'kxmlrpcclient' 'gdb')
cd build/drkonqi
make DESTDIR="${pkgdir}" install
}
package_plasma-wayland-session() {
pkgdesc='Plasma Wayland session'
depends=('plasma-workspace' 'qt5-wayland' 'kwayland-integration' 'xorg-server-xwayland')
install -Dm644 build/plasmawayland.desktop "$pkgdir"/usr/share/wayland-sessions/plasmawayland.desktop
}