aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/lxqt.scm52
1 files changed, 52 insertions, 0 deletions
diff --git a/gnu/packages/lxqt.scm b/gnu/packages/lxqt.scm
index 064f8c4f81..518c63e481 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+)))