#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' 'plasma-wayland-session') pkgver=${PVersion} pkgrel=1 pkgdesc='KDE Plasma Workspace' arch=('x86_64') url='https://projects.kde.org/projects/kde/workspace/plasma-workspace' license=('LGPL') depends=(kjsembed knotifyconfig libksysguard ktexteditor libqalculate qt5-tools kde-cli-tools bc xorg-xrdb xorg-xsetroot kactivitymanagerd kholidays xorg-utils milou prison kwin plasma-integration kdelibs4support) makedepends=(extra-cmake-modules kdoctools gpsd baloo krunner networkmanager-qt kdesignerplugin) #appstream-qt groups=('plasma') options=("debug") source=("${PServer}/${PVersion}/${pkgname}-${pkgver}.tar.xz"{,.sig} "kde.pam") sha256sums=( $(getSum ${pkgname} | head -n1) 'SKIP' '44a7c7acee30547dd41d0a593486b29df4eaa5c3707287b87e23b1104de3964a') validpgpkeys=(${Pvalidpgpkeys[@]}) 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 } 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' 'simplesystray' 'ksuperkey') provides=('xembed-sni-proxy' 'xembed-sni-proxy-git' 'simplesystray' 'ksuperkey') conflicts=('xembed-sni-proxy' 'xembed-sni-proxy-git' 'simplesystray' 'ksuperkey') cd build make DESTDIR="${pkgdir}" install install -Dm644 "${srcdir}"/kde.pam \ "${pkgdir}"/etc/pam.d/kde # Split plasma-wayland scripts rm -r "$pkgdir"/usr/share/wayland-sessions } 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 }