git » plasma-workspace.git » commit 775f504

Readd wayland session, move to a split package for now

author Antonio Rojas
2015-12-15 18:06:19 UTC
committer Antonio Rojas
2015-12-15 18:06:19 UTC
parent 0a61491ae9eeea8fdc847ec4907867bfc03aee7a

Readd wayland session, move to a split package for now

PKGBUILD +14 -7

diff --git a/PKGBUILD b/PKGBUILD
index 7f76fe4..8cd242d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,9 +4,9 @@
 # Contributor: Alexey D. <lq07829icatm at rambler.ru>
 
 pkgbase=plasma-workspace
-pkgname=('plasma-workspace' 'drkonqi')
+pkgname=('plasma-workspace' 'drkonqi' 'plasma-wayland-session')
 pkgver=5.5.1
-pkgrel=1
+pkgrel=2
 pkgdesc='KDE Plasma Workspace'
 arch=('i686' 'x86_64')
 url='https://projects.kde.org/projects/kde/workspace/plasma-workspace'
@@ -14,11 +14,10 @@ license=('LGPL')
 # note on libxdamage:
 # not detected by namcap because libgl depends on it
 # but nvidia providing libgl does not depend on libxdamage
-depends=('knewstuff' 'kjsembed' 'knotifyconfig' 'libxdamage' 'kscreenlocker'
-         'libksysguard' 'libkscreen' 'ktexteditor' 'libqalculate'
+depends=('kjsembed' 'knotifyconfig' 'libxdamage' 'libksysguard' 'libkscreen' 'ktexteditor' 'libqalculate'
          'qt5-tools' 'kded' 'kde-cli-tools' 'xorg-xrdb' 'xorg-xsetroot'
-         'xorg-xmessage' 'xorg-xprop' 'milou' 'breeze' 'prison-frameworks')
-makedepends=('extra-cmake-modules' 'kdoctools' 'kwin' 'gpsd' 'baloo'
+         'xorg-xmessage' 'xorg-xprop' 'milou' 'breeze' 'prison-frameworks' 'kwin')
+makedepends=('extra-cmake-modules' 'kdoctools' 'gpsd' 'baloo'
              'krunner' 'kxmlrpcclient' 'networkmanager-qt')
 groups=('plasma')
 source=("http://download.kde.org/stable/plasma/${pkgver}/${pkgbase}-${pkgver}.tar.xz" 'kde.pam')
@@ -60,8 +59,9 @@ package_plasma-workspace() {
   rm "${pkgdir}"/usr/lib/drkonqi
   rm -r "${pkgdir}"/usr/share/drkonqi
 
-  # Drop plasma-wayland session file, doesn't work
+  # Split plasma-wayland scripts
   rm -r "$pkgdir"/usr/share/wayland-sessions
+  rm -r "$pkgdir"/usr/bin
 }
 
 package_drkonqi() {
@@ -71,3 +71,10 @@ package_drkonqi() {
   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
+}