gnu: nftables: Update to 0.8.1.
[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>
b36524c1 6;;; Copyright © 2017 ng0 <ng0@infotropique.org>
e5e06930
AE
7;;;
8;;; This file is part of GNU Guix.
9;;;
10;;; GNU Guix is free software; you can redistribute it and/or modify it
11;;; under the terms of the GNU General Public License as published by
12;;; the Free Software Foundation; either version 3 of the License, or (at
13;;; your option) any later version.
14;;;
15;;; GNU Guix is distributed in the hope that it will be useful, but
16;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;;; GNU General Public License for more details.
19;;;
20;;; You should have received a copy of the GNU General Public License
21;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22
23(define-module (gnu packages lxqt)
24 #:use-module (guix download)
25 #:use-module ((guix licenses) #:select (lgpl2.1+))
26 #:use-module (guix packages)
27 #:use-module (guix utils)
28 #:use-module (guix build-system cmake)
44a477e1 29 #:use-module (gnu packages)
b36524c1 30 #:use-module (gnu packages glib)
6bb5a8a1 31 #:use-module (gnu packages kde-frameworks)
e5e06930
AE
32 #:use-module (gnu packages pkg-config)
33 #:use-module (gnu packages qt))
34
35(define-public libqtxdg
36 (package
37 (name "libqtxdg")
6cef1b9b 38 (version "1.2.0")
e5e06930
AE
39 (source
40 (origin
41 (method url-fetch)
42 (uri
3282442b
EF
43 (string-append "https://github.com/lxde/libqtxdg/releases/"
44 "download/" version "/" name "-" version ".tar.xz"))
e5e06930
AE
45 (sha256
46 (base32
6cef1b9b 47 "1ncqs0lcll5nx69hxfg33m3jfkryjqrjhr2kdci0b8pyaqdv1jc8"))))
e5e06930
AE
48 (build-system cmake-build-system)
49 (arguments
6cef1b9b
AE
50 `(#:tests? #f ; test fails with message "Exception"
51 #:configure-flags '("-DBUILD_TESTS=ON")))
e5e06930
AE
52 (native-inputs
53 `(("pkg-config" ,pkg-config)))
02559739 54 (propagated-inputs
aa450b2b 55 `(("qtbase" ,qtbase))) ; according to Qt5Xdg.pc
e5e06930
AE
56 (home-page "https://github.com/lxde/libqtxdg")
57 (synopsis "Qt implementation of freedesktop.org xdg specifications")
58 (description "Libqtxdg implements the freedesktop.org xdg specifications
59in Qt.")
60 (license lgpl2.1+)))
6bb5a8a1
AE
61
62(define-public liblxqt
63 (package
64 (name "liblxqt")
65 (version "0.9.0")
66 (source
67 (origin
68 (method url-fetch)
69 (uri
3282442b
EF
70 (string-append "https://github.com/lxde/" name
71 "/archive/" version ".tar.gz"))
72 (file-name (string-append name "-" version ".tar.gz"))
44a477e1 73 (sha256
6bb5a8a1 74 (base32
3282442b 75 "0mbl3qc0yfgfsndqrw8vg8k5irsy0pg2wrad8nwv0aphphd4n7rg"))
fc1adab1 76 (patches (search-patches "liblxqt-include.patch"))))
6bb5a8a1
AE
77 (build-system cmake-build-system)
78 (arguments
79 `(#:tests? #f))
80 (native-inputs `(("pkg-config" ,pkg-config)))
81 (inputs
82 `(("kwindowsystem" ,kwindowsystem)
5c733afd
EF
83 ("libqtxdg" ,libqtxdg)
84 ("qtbase" ,qtbase)
85 ("qttools" ,qttools)
86 ("qtx11extras" ,qtx11extras)))
6bb5a8a1
AE
87 (home-page "http://lxqt.org/")
88 (synopsis "Core utility library for all LXQt components")
89 (description "liblxqt provides the basic libraries shared by the
250ffe4d 90components of the LXQt desktop environment.")
6bb5a8a1 91 (license lgpl2.1+)))
cfa2e4ad 92
54033a4d
AE
93(define-public lxqt-session
94 (package
95 (name "lxqt-session")
96 (version "0.9.0")
97 (source
98 (origin
99 (method url-fetch)
100 (uri
3282442b
EF
101 (string-append "https://github.com/lxde/" name
102 "/archive/" version ".tar.gz"))
103 (file-name (string-append name "-" version ".tar.gz"))
54033a4d
AE
104 (sha256
105 (base32
3282442b 106 "1sdwcfrfqkg7ibrsncs1skdap9n8wm4rg6n9d0fgdz2q4d45h75a"))))
54033a4d 107 (build-system cmake-build-system)
e099d2a6 108 (native-inputs `(("pkg-config" ,pkg-config)))
54033a4d
AE
109 (inputs
110 `(("kwindowsystem" ,kwindowsystem)
111 ("liblxqt" ,liblxqt)
e099d2a6
EF
112 ("libqtxdg" ,libqtxdg)
113 ("qtbase" ,qtbase)
114 ("qttools" ,qttools)
115 ("qtx11extras" ,qtx11extras)))
54033a4d
AE
116 (arguments
117 `(#:tests? #f ; no check target
118 #:phases
119 (modify-phases %standard-phases
120 (add-before 'configure 'fix-installation-paths
121 (lambda _
122 ;; The variable LXQT_TRANSLATIONS_DIR is set in
123 ;; liblxqt-0.9.0/share/cmake/lxqt/lxqt-config.cmake
124 ;; to the liblxqt installation directory, followed by
125 ;; "/share/lxqt/translations".
126 ;; We need to have it point to the current installation
127 ;; directory instead.
128 (substitute* '("lxqt-session/CMakeLists.txt"
129 "lxqt-config-session/CMakeLists.txt")
130 (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
131 "${CMAKE_INSTALL_PREFIX}/share/lxqt/translations")))))))
132 (home-page "http://lxqt.org/")
133 (synopsis "Session manager for LXQt")
134 (description "lxqt-session provides the standard session manager
135for the LXQt desktop environment.")
136 (license lgpl2.1+)))
b36524c1 137
138(define-public lxqt-build-tools
139 (package
140 (name "lxqt-build-tools")
141 (version "0.4.0")
142 (source
143 (origin
144 (method url-fetch)
145 (uri (string-append "https://github.com/lxde/lxqt-build-tools/releases/"
146 "download/" version "/" name "-" version ".tar.xz"))
147 (file-name (string-append name "-" version ".tar.xz"))
148 (sha256
149 (base32
150 "1llbrjbgabxlq933a8cpg03b3mdmvd8983csnd4f7vrcj51nv0xh"))))
151 (build-system cmake-build-system)
152 (arguments
153 `(#:tests? #f)) ;No tests
154 (native-inputs
155 `(("pkg-config" ,pkg-config)
156 ("glib" ,glib)))
157 (inputs
158 `(("qtbase" ,qtbase)))
159 (synopsis "LXQt Build tools")
160 (description
161 "Lxqt-build-tools is providing several tools needed to build LXQt
162itself as well as other components maintained by the LXQt project.")
163 (home-page "http://lxqt.org")
164 (license lgpl2.1+)))