gnu: Add lxqt-panel.

* gnu/packages/lxqt.scm (lxqt-panel): New variable.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
This commit is contained in:
Meiyo Peng 2018-10-18 10:58:24 +08:00 committed by 宋文武
parent fbe645eafa
commit af291d1cdf
No known key found for this signature in database
GPG Key ID: 26525665AE727D37
1 changed files with 61 additions and 0 deletions

View File

@ -36,9 +36,13 @@
#:use-module (gnu packages kde-frameworks) #:use-module (gnu packages kde-frameworks)
#:use-module (gnu packages linux) #:use-module (gnu packages linux)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (gnu packages lxde)
#:use-module (gnu packages pcre)
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
#:use-module (gnu packages polkit) #:use-module (gnu packages polkit)
#:use-module (gnu packages pulseaudio)
#:use-module (gnu packages qt) #:use-module (gnu packages qt)
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages xorg)) #:use-module (gnu packages xorg))
(define-public libdbusmenu-qt (define-public libdbusmenu-qt
@ -264,6 +268,63 @@ shortcuts in LXQt sessions, that is shortcuts which apply to the LXQt session
as a whole and are not limited to distinct applications.") as a whole and are not limited to distinct applications.")
(license lgpl2.1+))) (license lgpl2.1+)))
(define-public lxqt-panel
(package
(name "lxqt-panel")
(version "0.13.0")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/lxqt/" name "/releases/download/"
version "/" name "-" version ".tar.xz"))
(sha256
(base32 "1qraigzq7nc5a2q6f5ybxwx07gxffa3m3bg7fiv6ppwss51xqfd1"))))
(build-system cmake-build-system)
(inputs
`(("alsa-lib" ,alsa-lib)
("kguiaddons" ,kguiaddons)
("kwindowsystem" ,kwindowsystem)
("libdbusmenu-qt" ,libdbusmenu-qt)
("liblxqt" ,liblxqt)
("libqtxdg" ,libqtxdg)
("libstatgrab" ,libstatgrab)
("libsysstat", libsysstat)
("libxcomposite" ,libxcomposite)
("libxdamage" ,libxdamage)
("libxkbcommon" ,libxkbcommon)
("libxrender" ,libxrender)
("lm-sensors" ,lm-sensors "lib")
("lxqt-globalkeys" ,lxqt-globalkeys)
("pcre" ,pcre)
("pulseaudio" ,pulseaudio)
("qtbase" ,qtbase)
("qtsvg" ,qtsvg)
("qtx11extras" ,qtx11extras)
("solid" ,solid)
("xcb-util" ,xcb-util)))
(native-inputs
`(("pkg-config" ,pkg-config)
("lxqt-build-tools" ,lxqt-build-tools)
("qttools" ,qttools)))
(arguments
'(#:tests? #f ; no tests
#:configure-flags
;; TODO: prefetch translations files from 'lxqt-l10n'.
'("-DPULL_TRANSLATIONS=NO")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-source
(lambda _
(substitute* '("autostart/CMakeLists.txt"
"menu/CMakeLists.txt")
(("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
"DESTINATION \"${CMAKE_INSTALL_PREFIX}/etc/xdg"))
#t)))))
(home-page "https://lxqt.org/")
(synopsis "The LXQt desktop panel")
(description "lxqt-panel represents the taskbar of LXQt.")
(license lgpl2.1+)))
(define-public lxqt-session (define-public lxqt-session
(package (package
(name "lxqt-session") (name "lxqt-session")