1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
3 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
5 ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
6 ;;; Copyright © 2017 Brendan Tildesley <brendan.tildesley@openmailbox.org>
7 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2018 Ison111 <ison111@protonmail.com>
9 ;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
11 ;;; This file is part of GNU Guix.
13 ;;; GNU Guix is free software; you can redistribute it and/or modify it
14 ;;; under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 3 of the License, or (at
16 ;;; your option) any later version.
18 ;;; GNU Guix is distributed in the hope that it will be useful, but
19 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
26 (define-module (gnu packages lxde)
27 #:use-module (gnu packages)
28 #:use-module (gnu packages autotools)
29 #:use-module (gnu packages bash)
30 #:use-module (gnu packages docbook)
31 #:use-module (gnu packages freedesktop)
32 #:use-module (gnu packages gettext)
33 #:use-module (gnu packages glib)
34 #:use-module (gnu packages gnome)
35 #:use-module (gnu packages gtk)
36 #:use-module (gnu packages image-viewers)
37 #:use-module (gnu packages linux)
38 #:use-module (gnu packages lsof)
39 #:use-module (gnu packages openbox)
40 #:use-module (gnu packages pkg-config)
41 #:use-module (gnu packages polkit)
42 #:use-module (gnu packages text-editors)
43 #:use-module (gnu packages video)
44 #:use-module (gnu packages wm)
45 #:use-module (gnu packages xml)
46 #:use-module (gnu packages xorg)
47 #:use-module (guix build-system gnu)
48 #:use-module (guix build-system trivial)
49 #:use-module (guix download)
50 #:use-module ((guix licenses) #:prefix license:)
51 #:use-module (guix packages)
52 #:use-module (guix utils))
60 (uri (string-append "mirror://sourceforge/pcmanfm/"
61 "PCManFM%20%2B%20Libfm%20%28tarball%20release"
62 "%29/LibFM/" name "-" version ".tar.xz"))
65 "0wkwbi1nyvqza3r1dhrq846axiiq0fy0dqgngnagh76fjrwnzl0q"))))
66 (build-system gnu-build-system)
67 (inputs `(("glib" ,glib)
69 (native-inputs `(("intltool" ,intltool)
70 ("glib" ,glib "bin") ; for gtester
72 ("menu-cache" ,menu-cache)
73 ("pkg-config" ,pkg-config)
75 (synopsis "File management support (core library)")
76 (description "LibFM provides file management functions built on top of
77 Glib/GIO giving a higher-level API.")
78 (home-page "https://lxde.org")
79 (license license:gpl2+)))
81 (define-public libfm-extra
82 (package (inherit libfm)
84 (arguments '(#:configure-flags '("--with-extra-only")))
85 (inputs `(("glib" ,glib)))
86 (native-inputs `(("intltool" ,intltool)
88 ("pkg-config" ,pkg-config)))
89 (synopsis "File management support (extra library)")
90 (description "This package contains standalone library which extends the
91 libFM file management library.")))
93 (define-public lxappearance
99 (uri (string-append "mirror://sourceforge/lxde/"
100 "LXAppearance/" name "-" version ".tar.xz"))
103 "07r0xbi6504zjnbpan7zrn7gi4j0kbsqqfpj8v2x94gr05p16qj4"))))
104 (build-system gnu-build-system)
105 (inputs `(("gtk+" ,gtk+-2)))
106 (native-inputs `(("intltool" ,intltool)
107 ("pkg-config" ,pkg-config)))
108 (synopsis "LXDE GTK+ theme switcher")
109 (description "LXAppearance is a desktop-independent GTK+ theme switcher
110 able to change themes, icons, and fonts used by GTK+ applications.")
111 (home-page "https://lxde.org")
112 (license license:gpl2+)))
114 (define-public lxrandr
120 (uri (string-append "mirror://sourceforge/lxde/LXRandR"
121 "%20%28monitor%20config%20tool%29/LXRandR%20"
122 (version-major+minor version) ".x/"
123 name "-" version ".tar.xz"))
126 "0khqi42paqg82jllb2kza4arf3fafzgq90fhyr3rw3d9hn23763d"))))
127 (build-system gnu-build-system)
128 (inputs `(("gtk+" ,gtk+-2)))
129 (native-inputs `(("intltool" ,intltool)
130 ("pkg-config" ,pkg-config)))
131 (synopsis "LXDE monitor configuration tool")
132 (description "LXRandR is a very basic monitor configuration tool. It
133 relies on the X11 resize-and-rotate (RandR) extension but doesn't aim to be a
134 full frontend of it. LXRandR only gives you some easy and quick options which
135 are intuitive. It's suitable for laptop users who frequently uses projectors
136 or external monitor.")
137 (home-page "https://lxde.org")
138 (license license:gpl2+)))
140 (define-public lxtask
146 (uri (string-append "mirror://sourceforge/lxde/LXTask"
147 "%20%28task%20manager%29/LXTask%20"
148 (version-major+minor version) ".x/"
149 name "-" version ".tar.xz"))
152 "1zihhvzsg9bl6k0gv7jwx6cgsi3rmcagvnmshc1h0mjq2immmdph"))))
153 (build-system gnu-build-system)
154 (inputs `(("gtk+" ,gtk+-2)))
155 (native-inputs `(("intltool" ,intltool)
156 ("pkg-config" ,pkg-config)))
157 (synopsis "LXDE task manager")
158 (description "LXTask is a lightweight task manager derived from Xfce task
159 manager with all dependencies on Xfce removed. LXTask is based on the GTK+
160 toolkit. It allows users to monitor and control of running processes.")
161 (home-page "https://lxde.org")
162 (license license:gpl2+)))
164 (define-public lxterminal
170 (uri (string-append "mirror://sourceforge/lxde/LXTerminal"
171 "%20%28terminal%20emulator%29/LXTerminal%20"
172 version "/" name "-" version ".tar.xz"))
175 "0jrc3m0hbxcmcgahwjlm46s2350gh80ggb6a90xy0h6xqa3z73fd"))))
176 (build-system gnu-build-system)
177 (inputs `(("gtk+" ,gtk+-2)
178 ("vte" ,vte/gtk+-2)))
179 (native-inputs `(("intltool" ,intltool)
180 ("pkg-config" ,pkg-config)))
181 (synopsis "LXDE terminal emulator")
182 (description "LXTerminal is a VTE-based terminal emulator. It supports
183 multiple tabs and has only minimal dependencies thus being completely
184 desktop-independent. In order to reduce memory usage and increase the
185 performance, all instances of the terminal are sharing a single process.")
186 (home-page "https://lxde.org")
187 (license license:gpl2+)))
189 (define-public menu-cache
195 (uri (string-append "mirror://sourceforge/lxde/" name "/"
196 (version-major+minor version) "/"
197 name "-" version ".tar.xz"))
200 "1m8j40npykfcfqs43kc0fmksal2jfmfi8lnb3mq3xy1lvvrfv0vg"))))
201 (build-system gnu-build-system)
202 (inputs `(("glib" ,glib)
203 ("libfm" ,libfm-extra)))
204 (native-inputs `(("pkg-config" ,pkg-config)))
205 (synopsis "LXDE implementation of the freedesktop menu's cache")
206 (description "Menu-cache is a library creating and utilizing caches to
207 speed up the access to freedesktop.org defined application menus.")
208 (home-page "https://lxde.org")
209 (license license:lgpl2.1+)))
211 (define-public pcmanfm
217 (uri (string-append "mirror://sourceforge/" name "/"
218 "PCManFM%20%2B%20Libfm%20%28tarball%20release"
219 "%29/PCManFM/" name "-" version ".tar.xz"))
222 "1ywgfyklms5hqkapsbjps4kyx20ac0d1qk16ww74yagkyfdkwsas"))))
223 (build-system gnu-build-system)
224 (inputs `(("gtk+" ,gtk+-2)
225 ("gvfs" ,gvfs) ; for trash and mount support
228 (native-inputs `(("intltool" ,intltool)
230 ("pkg-config" ,pkg-config)))
232 `(("lxmenu-data" ,lxmenu-data))) ; for "Open With..." application list
233 (synopsis "LXDE file manager")
234 (description "PCMan is a lightweight GTK+ based file manager, compliant
235 with freedesktop.org standard.")
236 (home-page "https://lxde.org")
237 (license license:gpl2+)))
239 (define-public spacefm
240 ;; SpaceFM is based on PCManFM.
247 "https://github.com/IgnorantGuru/spacefm/archive/"
251 "1jg7xfyr7kihjnalxp8wxyb9qjk8hqf5l36rp3s0lvkpmpyakppy"))
252 (file-name (string-append name "-" version ".tar.gz"))))
253 (build-system gnu-build-system)
254 (native-inputs `(("pkg-config" ,pkg-config)
255 ("intltool" ,intltool)))
256 (inputs `(("bash" ,bash)
259 ("desktop-file-utils" ,desktop-file-utils)
260 ("shared-mime-info" ,shared-mime-info)
261 ("ffmpegthumbnailer" ,ffmpegthumbnailer)
266 `(#:configure-flags (list (string-append "--with-bash-path="
267 (assoc-ref %build-inputs "bash")
269 (string-append "--sysconfdir="
270 (assoc-ref %outputs "out")
272 (home-page "http://ignorantguru.github.io/spacefm/")
273 (synopsis "Multi-panel tabbed file manager")
274 (description "SpaceFM is a graphical, multi-panel, tabbed file manager
275 based on PCManFM with built-in virtual file system, udev-based device manager,
276 customizable menu system, and Bash integration.")
278 ;; The combination is GPLv3+ but src/exo is under LGPLv3+.
279 (license license:gpl3+)))
281 (define-public lxmenu-data
288 (uri (string-append "https://downloads.sourceforge.net/lxde/"
289 name "-" version ".tar.xz"))
292 "1f5sh2dvb3pdnjlcsyzq9543ck2jsqizkx3204cr22zm5s6j3qwz"))))
293 (build-system gnu-build-system)
295 `(("pkg-config" ,pkg-config)
296 ("intltool" ,intltool)))
297 (synopsis "Freedesktop.org desktop menus for LXDE")
299 "Lxmenu-data provides files required to build freedesktop.org
300 menu spec-compliant desktop menus for LXDE.")
301 (home-page "https://lxde.org")
302 (license license:lgpl2.1+)))
304 (define-public lxde-icon-theme
306 (name "lxde-icon-theme")
311 (uri (string-append "https://downloads.sourceforge.net/lxde/"
312 name "-" version ".tar.xz"))
315 "0v4i6x86fr2hbx4fb2si7y2qzmj7h6hcjwaifnin18r8kwwvgl73"))))
316 (build-system gnu-build-system)
318 `(("pkg-config" ,pkg-config)))
319 (synopsis "LXDE default icon theme based on nuoveXT2")
321 "Lxde-icon-theme provides an default icon theme for LXDE.")
322 (home-page "https://lxde.org")
323 (license license:lgpl3)))
325 (define-public lxde-common
332 (uri (string-append "https://downloads.sourceforge.net/lxde/"
333 name "-" version ".tar.xz"))
336 "0mj84fa3f4ak1jjslrwc2q3ci9zxrxpciggviza9bjb0168brn8w"))))
337 (build-system gnu-build-system)
339 '(#:phases (modify-phases %standard-phases
340 (add-before 'configure 'set-lxsession
341 (lambda* (#:key inputs #:allow-other-keys)
342 ;; Set the right file name for 'lxsession'.
343 (let ((lxsession (assoc-ref inputs "lxsession")))
344 (substitute* "startlxde.in"
345 (("^exec .*/bin/lxsession")
346 (string-append "exec " lxsession
350 `(("pkg-config" ,pkg-config)
351 ("intltool" ,intltool)
352 ("lxmenu-data" ,lxmenu-data)
353 ("lxde-icon-theme" ,lxde-icon-theme)))
355 `(("lxsession" ,lxsession)
356 ;; ("lxlock" ,lxlock) ;for 'lxde-screenlock.desktop'
358 (synopsis "Common files of the LXDE Desktop")
360 "Lxde-common provides common files of the LXDE Desktop.")
361 (home-page "https://lxde.org")
362 (license license:gpl2+)))
364 (define-public lxinput
371 (uri (string-append "https://downloads.sourceforge.net/lxde/"
372 name "-" version ".tar.xz"))
375 "123f3yn4rp1w5b3n5aj3ad9snkxab29qkrs7bcvf5bx4cn57g3sf"))))
376 (build-system gnu-build-system)
378 `(("gtk+-2" ,gtk+-2)))
380 `(("pkg-config" ,pkg-config)
381 ("intltool" ,intltool)))
382 (synopsis "Tool for mouse and keyboard configuration in LXDE")
384 "Lxinput provides a small program to configure keyboard and mouse
386 (home-page "https://lxde.org")
387 (license license:gpl2+)))
389 (define-public lxsession
396 (uri (string-append "https://downloads.sourceforge.net/lxde/"
397 name "-" version ".tar.xz"))
398 (patches (search-patches "lxsession-use-gapplication.patch"))
401 "1a0zmyywwzdh59nc0l94cir18vhp633z4q2xfhn5zx11ajj45gwh"))
402 (modules '((guix build utils)))
404 ;; Remove C files generated by Vala so we can build from source.
407 (string-append (string-drop-right file 2)
411 (and (string-suffix? ".c" file)
412 (file-exists? (c->vala file))))))
413 (for-each delete-file
414 (find-files "." generated-c-file?))
416 (build-system gnu-build-system)
419 (modify-phases %standard-phases
420 (add-after 'unpack 'rm-stamp
422 (for-each delete-file (find-files "." "\\.stamp$"))))
423 (add-after 'rm-stamp 'autoreconf
425 (zero? (system* "autoreconf" "-vfi")))))))
430 `(("pkg-config" ,pkg-config)
431 ("intltool" ,intltool)
432 ("docbook-xsl" ,docbook-xsl)
434 ("autoconf" ,autoconf)
435 ("automake" ,automake)))
436 (synopsis "Lightweight X11 session manager")
438 "Lxsession provides an lightweight X11 session manager.")
439 (home-page "https://lxde.org")
440 (license license:gpl2+)))
442 (define-public lxpanel
449 (uri (string-append "https://downloads.sourceforge.net/lxde/"
450 name "-" version ".tar.xz"))
453 "1ccgv7jgl3y865cpb6w7baaz7468fxncm83bqxlwyni5bwhglb1l"))))
454 (build-system gnu-build-system)
457 (modify-phases %standard-phases
458 (add-after 'install 'wrap
459 (lambda* (#:key inputs outputs #:allow-other-keys)
460 (let ((out (assoc-ref outputs "out"))
461 (menu (assoc-ref inputs "lxmenu-data")))
462 (wrap-program (string-append out "/bin/lxpanel")
463 `("XDG_DATA_DIRS" ":" prefix
464 (,(string-append menu "/share"))))
467 ;; TODO: libindicator-0.3.0
469 ("alsa-lib" ,alsa-lib)
470 ("libwnck-2" ,libwnck-2)
471 ("keybinder" ,keybinder)
477 ("wireless-tools" ,wireless-tools)))
479 `(("pkg-config" ,pkg-config)
480 ("intltool" ,intltool)
481 ("docbook-xml" ,docbook-xml)
482 ("gettext-minimal" ,gettext-minimal)))
484 `(("lxmenu-data" ,lxmenu-data)
486 ("menu-cache" ,menu-cache)))
487 (synopsis "X11 Desktop panel for LXDE")
489 "Lxpanel provides an X11 desktop panel for LXDE.")
490 (home-page "https://lxde.org")
491 (license license:gpl2+)))
496 (version (package-version lxde-common))
498 (build-system trivial-build-system)
499 (arguments '(#:builder (begin (mkdir %output) #t)))
502 ;; lxshortcut, lxsession-edit
503 ;; lxappearance-obconf
504 `(("menu-cache" ,menu-cache)
505 ("gpicview" ,gpicview)
507 ("lxappearance" ,lxappearance)
508 ("lxde-icon-theme" ,lxde-icon-theme)
509 ("lxde-common" ,lxde-common)
510 ("lxmenu-data" ,lxmenu-data)
513 ("lxsession" ,lxsession)
515 ("libfm-extra" ,libfm-extra)
517 ("lxterminal" ,lxterminal)
521 (synopsis "Lightweight X11 Desktop Environment")
523 "LXDE, which stands for Lightweight X11 Desktop Environment, is a
524 desktop environment which is lightweight and fast. It is designed to be
525 user friendly and slim, while keeping the resource usage low. LXDE uses
526 less RAM and less CPU while being a feature rich desktop environment. Unlike
527 other tightly integrated desktops LXDE strives to be modular, so each
528 component can be used independently with few dependencies.")
529 (home-page "https://lxde.org")
530 (license license:gpl2+))) ; And others.
532 ;;; lxde.scm ends here