Subject: [bug#34435] [PATCH 2/3] gnu: Add kdecoration.

From: Marius Bakke <[email-masked]>
Date: Mon, 11 Feb 2019 16:18:34 +0100

From: Hartmut Goebel <[email-masked]>

* gnu/packages/kde.scm (kdecoration): New public variable.

Co-authored-by: Marius Bakke <[email-masked]>
---
 gnu/packages/kde.scm | 33 ++++++++++++++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 36f7f234c8..3508e8461f 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -4,7 +4,8 @@
 ;;; Copyright © 2017, 2018 Mark Meyer <[email-masked]>
 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <[email-masked]>
 ;;; Copyright © 2018 Gábor Boskovits <[email-masked]>
-;;; Copyright © 2018 Marius Bakke <[email-masked]>
+;;; Copyright © 2018, 2019 Marius Bakke <[email-masked]>
+;;; Copyright © 2017 Hartmut Goebel <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -59,6 +60,36 @@
   #:use-module (gnu packages video)
   #:use-module (gnu packages xorg))
 
+(define-public kdecoration
+  (package
+    (name "kdecoration")
+    (version "5.14.5")
+    (source
+     (origin
+      (method url-fetch)
+      (uri (string-append "mirror://kde/stable/plasma/" version
+                          "/kdecoration-" version ".tar.xz"))
+      (sha256
+       (base32 "115pli0qpa8lx0jasg1886fcg7gb2kk8v6k8r8l8c820l97sq7in"))))
+    (properties `((tags . '("Desktop" "KDE" "Plasma"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("extra-cmake-modules" ,extra-cmake-modules)))
+    (inputs
+     `(("ki18n" ,ki18n)
+       ("qtbase" ,qtbase)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'check-setup
+           (lambda _ (setenv "QT_QPA_PLATFORM" "offscreen") #t)))))
+    (home-page "https://cgit.kde.org/kdecoration.git")
+    (synopsis "Plugin based library to create window decorations")
+    (description "KDecoration is a library to create window decorations.
+These window decorations can be used by for example an X11 based window
+manager which re-parents a client window to a window decoration frame.")
+    (license license:lgpl3+)))
+
 (define-public kdenlive
   (let ((version "18.08.1"))
     (package
-- 
2.20.1