gnu: lxqt-build-tools: Update download URL and home page URL.
[jackhill/guix/guix.git] / gnu / packages / lxqt.scm
CommitLineData
e5e06930
AE
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
3;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
b042bdc8 4;;; Copyright © 2016 Mark H Weaver <mhw@netris.org>
3282442b 5;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
4a78fd46 6;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
e1345dec 7;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
50401c2a 8;;; Copyright © 2018 Meiyo Peng <meiyo.peng@gmail.com>
e5e06930
AE
9;;;
10;;; This file is part of GNU Guix.
11;;;
12;;; GNU Guix is free software; you can redistribute it and/or modify it
13;;; under the terms of the GNU General Public License as published by
14;;; the Free Software Foundation; either version 3 of the License, or (at
15;;; your option) any later version.
16;;;
17;;; GNU Guix is distributed in the hope that it will be useful, but
18;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20;;; GNU General Public License for more details.
21;;;
22;;; You should have received a copy of the GNU General Public License
23;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24
25(define-module (gnu packages lxqt)
26 #:use-module (guix download)
27 #:use-module ((guix licenses) #:select (lgpl2.1+))
28 #:use-module (guix packages)
29 #:use-module (guix utils)
30 #:use-module (guix build-system cmake)
44a477e1 31 #:use-module (gnu packages)
70c488f8 32 #:use-module (gnu packages freedesktop)
b36524c1 33 #:use-module (gnu packages glib)
6bb5a8a1 34 #:use-module (gnu packages kde-frameworks)
70c488f8 35 #:use-module (gnu packages linux)
e5e06930 36 #:use-module (gnu packages pkg-config)
9861bcd1
MP
37 #:use-module (gnu packages polkit)
38 #:use-module (gnu packages qt)
39 #:use-module (gnu packages xorg))
e5e06930
AE
40
41(define-public libqtxdg
42 (package
43 (name "libqtxdg")
50401c2a 44 (version "3.2.0")
e5e06930
AE
45 (source
46 (origin
47 (method url-fetch)
50401c2a
MP
48 (uri (string-append
49 "https://github.com/lxqt/" name "/releases/download/"
50 version "/" name "-" version ".tar.xz"))
e5e06930 51 (sha256
50401c2a 52 (base32 "0lq548pa69hfvnbj2ypba5ygm8n6v6g7bqqm8p5g538l1l3394cl"))))
e5e06930
AE
53 (build-system cmake-build-system)
54 (arguments
50401c2a
MP
55 `(#:configure-flags
56 `("-DBUILD_TESTS=ON"
57 ,(string-append "-DQTXDGX_ICONENGINEPLUGIN_INSTALL_PATH="
58 %output "/lib/qt5/plugins/iconengines"))
59 #:phases
60 (modify-phases %standard-phases
61 (add-before 'check 'pre-check
62 (lambda _
63 ;; Run the tests offscreen.
64 (setenv "QT_QPA_PLATFORM" "offscreen")
65 #t)))))
02559739 66 (propagated-inputs
50401c2a
MP
67 ;; required by Qt5XdgIconLoader.pc
68 `(("qtbase" ,qtbase)
69 ("qtsvg" ,qtsvg)))
70 (home-page "https://github.com/lxqt/libqtxdg")
e5e06930
AE
71 (synopsis "Qt implementation of freedesktop.org xdg specifications")
72 (description "Libqtxdg implements the freedesktop.org xdg specifications
73in Qt.")
74 (license lgpl2.1+)))
6bb5a8a1
AE
75
76(define-public liblxqt
77 (package
78 (name "liblxqt")
9861bcd1 79 (version "0.13.0")
6bb5a8a1
AE
80 (source
81 (origin
82 (method url-fetch)
9861bcd1
MP
83 (uri (string-append
84 "https://github.com/lxqt/" name "/releases/download/"
85 version "/" name "-" version ".tar.xz"))
44a477e1 86 (sha256
9861bcd1 87 (base32 "0fba0nq5b9fvvmklcikcd4nwhzlp5d6k1q1f80r34kncdzfvj7dl"))))
6bb5a8a1
AE
88 (build-system cmake-build-system)
89 (arguments
9861bcd1
MP
90 `(#:tests? #f ; no tests
91 #:configure-flags
92 ;; TODO: prefetch translations files from 'lxqt-l10n'.
93 '("-DPULL_TRANSLATIONS=NO")
94 #:phases
95 (modify-phases %standard-phases
96 (add-after 'unpack 'patch-source
97 (lambda _
98 (substitute* "CMakeLists.txt"
99 (("DESTINATION \"\\$\\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\\}")
100 "DESTINATION \"${CMAKE_INSTALL_PREFIX}/share/polkit-1/actions"))
101 #t)))))
6bb5a8a1
AE
102 (inputs
103 `(("kwindowsystem" ,kwindowsystem)
5c733afd 104 ("libqtxdg" ,libqtxdg)
9861bcd1
MP
105 ("libxscrnsaver" ,libxscrnsaver)
106 ("polkit-qt" ,polkit-qt)
107 ("qtsvg" ,qtsvg)
5c733afd
EF
108 ("qttools" ,qttools)
109 ("qtx11extras" ,qtx11extras)))
9861bcd1
MP
110 (native-inputs
111 `(("lxqt-build-tools" ,lxqt-build-tools)))
112 (home-page "https://lxqt.org/")
6bb5a8a1
AE
113 (synopsis "Core utility library for all LXQt components")
114 (description "liblxqt provides the basic libraries shared by the
250ffe4d 115components of the LXQt desktop environment.")
6bb5a8a1 116 (license lgpl2.1+)))
cfa2e4ad 117
54033a4d
AE
118(define-public lxqt-session
119 (package
120 (name "lxqt-session")
70c488f8 121 (version "0.13.0")
54033a4d
AE
122 (source
123 (origin
124 (method url-fetch)
70c488f8
MP
125 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
126 version "/" name "-" version ".tar.xz"))
54033a4d 127 (sha256
70c488f8 128 (base32 "1aibppppmg46ybbajx2qc395l0yp9rqlp2am01fqjxadsf8vci5z"))))
54033a4d 129 (build-system cmake-build-system)
54033a4d 130 (inputs
70c488f8
MP
131 `(("eudev" ,eudev)
132 ("kwindowsystem" ,kwindowsystem)
54033a4d 133 ("liblxqt" ,liblxqt)
e099d2a6
EF
134 ("libqtxdg" ,libqtxdg)
135 ("qtbase" ,qtbase)
70c488f8 136 ("qtsvg" ,qtsvg)
e099d2a6 137 ("qttools" ,qttools)
70c488f8
MP
138 ("qtx11extras" ,qtx11extras)
139 ("xdg-user-dirs" ,xdg-user-dirs)))
140 (native-inputs
141 `(("pkg-config" ,pkg-config)
142 ("lxqt-build-tools" ,lxqt-build-tools)))
54033a4d 143 (arguments
70c488f8
MP
144 `(#:tests? #f
145 #:configure-flags
146 `("-DPULL_TRANSLATIONS=NO")
54033a4d 147 #:phases
70c488f8
MP
148 (modify-phases %standard-phases
149 (add-after 'unpack 'patch-source
54033a4d 150 (lambda _
70c488f8
MP
151 (substitute* '("autostart/CMakeLists.txt"
152 "config/CMakeLists.txt")
153 (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
154 "DESTINATION \"${CMAKE_INSTALL_PREFIX}/etc/xdg"))
155 #t)))))
156 (home-page "https://lxqt.org/")
54033a4d
AE
157 (synopsis "Session manager for LXQt")
158 (description "lxqt-session provides the standard session manager
159for the LXQt desktop environment.")
160 (license lgpl2.1+)))
b36524c1 161
162(define-public lxqt-build-tools
163 (package
164 (name "lxqt-build-tools")
e1345dec 165 (version "0.5.0")
b36524c1 166 (source
167 (origin
168 (method url-fetch)
088096aa
MP
169 (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
170 version "/" name "-" version ".tar.xz"))
b36524c1 171 (sha256
088096aa 172 (base32 "13b5x26p6ycnwzlgg1cgvlc88wjrjmlb3snrrmzh0xgh9h6hhvd6"))))
b36524c1 173 (build-system cmake-build-system)
174 (arguments
e1345dec 175 `(#:tests? #f)) ; no tests
b36524c1 176 (native-inputs
177 `(("pkg-config" ,pkg-config)
178 ("glib" ,glib)))
179 (inputs
180 `(("qtbase" ,qtbase)))
181 (synopsis "LXQt Build tools")
182 (description
183 "Lxqt-build-tools is providing several tools needed to build LXQt
184itself as well as other components maintained by the LXQt project.")
088096aa 185 (home-page "https://lxqt.org")
b36524c1 186 (license lgpl2.1+)))