1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Alexey D. <lq07829icatm at rambler.ru>
6 pkgbase=plasma-workspace
7 pkgname=(plasma-workspace plasma-wayland-session)
9 _dirver=$(echo $pkgver | cut -d. -f1-3)
11 pkgdesc='KDE Plasma Workspace'
13 url='https://kde.org/plasma-desktop/'
15 depends=(knotifyconfig ksystemstats ktexteditor libqalculate kde-cli-tools appstream-qt
16 xorg-xrdb xorg-xsetroot kactivitymanagerd kholidays xorg-xmessage milou prison kwin
17 plasma-integration kpeople kactivities-stats kquickcharts kuserfeedback kpipewire
18 accountsservice kio-extras kio-fuse qt5-tools oxygen-sounds)
19 makedepends=(extra-cmake-modules kdoctools gpsd baloo networkmanager-qt plasma-wayland-protocols wayland-protocols kunitconversion)
21 source=(https://download.kde.org/stable/plasma/$_dirver/$pkgbase-$pkgver.tar.xz{,.sig} kde.pam)
22 sha256sums=('cb3906ac954bfd0784614843b1aaf9abda640ea3ed944d8651aaa4149baf65a5'
24 '00090291204baabe9d6857d3b1419832376dd2e279087d718b64792691e86739')
25 validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D' # Jonathan Esk-Riddell <jr@jriddell.org>
26 '0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D' # Bhushan Shah <bshah@kde.org>
27 'D07BD8662C56CB291B316EB2F5675605C74E02CF' # David Edmundson <davidedmundson@kde.org>
28 '1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin <notmart@gmail.com>
31 cmake -B build -S $pkgbase-$pkgver \
32 -DCMAKE_INSTALL_LIBEXECDIR=lib \
33 -DGLIBC_LOCALE_GEN=OFF \
38 package_plasma-workspace() {
39 optdepends=('plasma-workspace-wallpapers: additional wallpapers'
40 'gpsd: GPS based geolocation' 'networkmanager-qt: IP based geolocation'
41 'kdepim-addons: displaying PIM events in the calendar'
42 'appmenu-gtk-module: global menu support for GTK2 and some GTK3 applications'
43 'baloo: Baloo search runner' 'discover: manage applications installation from the launcher')
44 backup=('etc/pam.d/kde')
46 DESTDIR="$pkgdir" cmake --install build
48 install -Dm644 "$srcdir"/kde.pam "$pkgdir"/etc/pam.d/kde
50 # Split plasma-wayland scripts
51 rm -r "$pkgdir"/usr/share/wayland-sessions
54 package_plasma-wayland-session() {
55 pkgdesc='Plasma Wayland session'
56 depends=(plasma-workspace qt5-wayland kwayland-integration xorg-xwayland)
59 install -Dm644 build/login-sessions/plasmawayland.desktop "$pkgdir"/usr/share/wayland-sessions/plasmawayland.desktop