guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: Add lxqt-common.


From: Andreas Enge
Subject: 02/03: gnu: Add lxqt-common.
Date: Sat, 03 Oct 2015 19:21:37 +0000

andreas pushed a commit to branch master
in repository guix.

commit cfa2e4ad4097947ec393888dc4a95322e1364ba9
Author: Andreas Enge <address@hidden>
Date:   Sat Oct 3 19:45:06 2015 +0200

    gnu: Add lxqt-common.
    
    * gnu/packages/lxqt.scm (lxqt-common): New variable.
---
 gnu/packages/lxqt.scm |   52 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/lxqt.scm b/gnu/packages/lxqt.scm
index 064f8c4..518c63e 100644
--- a/gnu/packages/lxqt.scm
+++ b/gnu/packages/lxqt.scm
@@ -81,3 +81,55 @@ in Qt.")
     (description "liblxqt provides the basic libraries shared by the
 components of the LxQt desktop environment.")
     (license lgpl2.1+)))
+
+
+(define-public lxqt-common
+  (package
+    (name "lxqt-common")
+    (version "0.9.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+         (string-append "http://downloads.lxqt.org/lxqt/"; version "/"
+                        name "-" version ".tar.xz"))
+       (sha256
+        (base32
+         "0kbkwmrdjhfbq60wf2yfbsjmci8xlw13ilxxa7yxq68n1aqjqmvf"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f ; no check target
+       #:phases
+        (modify-phases %standard-phases
+          (add-before 'configure 'fix-installation-paths
+           (lambda _
+             ;; The variable LXQT_ETC_XDG_DIR is set in
+             ;; liblxqt-0.9.0/share/cmake/lxqt/lxqt-config.cmake
+             ;; to the Qt5 installation directory, followed by "/etc/xdg".
+             ;; We need to have it point to the current installation
+             ;; directory instead.
+             (substitute* '("config/CMakeLists.txt"
+                            "menu/CMakeLists.txt")
+               (("\\$\\{LXQT_ETC_XDG_DIR\\}")
+                "${CMAKE_INSTALL_PREFIX}/etc/xdg")
+               ;; In the same file, LXQT_SHARE_DIR is set to the installation
+               ;; directory of liblxqt, followed by "/share/lxqt".
+               (("\\$\\{LXQT_SHARE_DIR\\}")
+                "${CMAKE_INSTALL_PREFIX}/share/lxqt"))
+             ;; Replace absolute directories.
+             (substitute* "autostart/CMakeLists.txt"
+               (("/etc/xdg")
+                "${CMAKE_INSTALL_PREFIX}/etc/xdg"))
+             (substitute* "xsession/CMakeLists.txt"
+               (("/usr/share")
+                "${CMAKE_INSTALL_PREFIX}/share")))))))
+    (inputs
+     `(("kwindowsystem" ,kwindowsystem)
+       ("liblxqt" ,liblxqt)
+       ("libqtxdg" ,libqtxdg)))
+    (home-page "http://lxqt.org/";)
+    (synopsis "Common files for LXQt")
+    (description "lxqt-common provides the desktop integration files
+(themes, icons, configuration files etc.) for the LXQt
+desktop environment.")
+    (license lgpl2.1+)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]