# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Alexey D. <lq07829icatm at rambler.ru>
pkgbase=plasma-workspace
pkgname=(plasma-workspace plasma-wayland-session)
pkgver=5.27.10
_dirver=$(echo $pkgver | cut -d. -f1-3)
pkgrel=3
pkgdesc='KDE Plasma Workspace'
arch=(x86_64 'armv7h')
url='https://kde.org/plasma-desktop/'
license=(LGPL)
depends=(knotifyconfig ksystemstats ktexteditor libqalculate kpipewire
xorg-xrdb xorg-xsetroot kactivitymanagerd kholidays xorg-xmessage milou prison kwin
plasma-integration kpeople kactivities-stats kquickcharts kuserfeedback accountsservice kio-extras kio-fuse qt5-tools oxygen-sounds)
makedepends=(extra-cmake-modules kdoctools baloo networkmanager-qt plasma-wayland-protocols wayland-protocols kunitconversion)
groups=(plasma)
source=(https://download.kde.org/stable/plasma/$_dirver/$pkgbase-$pkgver.tar.xz{,.sig} kde.pam
appstream-1.0.patch)
sha256sums=('525dc164c61a6730f33d54ff5013d57184b9d671786fe898ca7e054426359778'
'SKIP'
'00090291204baabe9d6857d3b1419832376dd2e279087d718b64792691e86739'
'e3068a5709711dc54809b0280a59ec3ab6bc3b7ad0f0d93246e40d1daa1dc45e')
validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D' # Jonathan Esk-Riddell <jr@jriddell.org>
'0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D' # Bhushan Shah <bshah@kde.org>
'D07BD8662C56CB291B316EB2F5675605C74E02CF' # David Edmundson <davidedmundson@kde.org>
'1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin <notmart@gmail.com>
prepare() {
patch -d $pkgbase-$pkgver -p1 < appstream-1.0.patch # Support appstream 1.0
}
build() {
cmake -B build -S $pkgbase-$pkgver \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DGLIBC_LOCALE_GEN=OFF \
-DBUILD_TESTING=OFF
cmake --build build
}
package_plasma-workspace() {
depends+=(kde-cli-tools)
optdepends=('plasma-workspace-wallpapers: additional wallpapers'
'networkmanager-qt5: IP based geolocation'
'kdepim-addons: displaying PIM events in the calendar'
'appmenu-gtk-module: global menu support for GTK2 and some GTK3 applications'
'baloo: Baloo search runner' 'discover: manage applications installation from the launcher')
backup=('etc/pam.d/kde')
DESTDIR="$pkgdir" cmake --install build
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-xwayland)
groups=()
install -Dm644 build/login-sessions/plasmawayland.desktop "$pkgdir"/usr/share/wayland-sessions/plasmawayland.desktop
}