Subject: [bug#60000] [PATCH] gnu: Add lxappearance-gtk3-wayland

From: [email-masked]
Date: Mon, 12 Dec 2022 10:52:16 +0000

From: florhizome <[email-masked]>

* gnu/packages/lxde.scm (lxappearance-gtk3-wayland): New Variable.
---
 gnu/packages/lxde.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index 0657db6eb8..a37dc2a562 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -124,6 +124,41 @@ (define-public lxappearance
     (home-page "https://www.lxde.org/")
     (license license:gpl2+)))
 
+(define-public lxappearance-gtk3-wayland
+  (package
+    (inherit lxappearance)
+    (name "lxappearance-gtk3-wayland")
+    (version "0.6.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "mirror://sourceforge/lxde/"
+                       "LXAppearance/lxappearance-" version ".tar.xz"))
+       (sha256
+        (base32 "0f4bjaamfxxdr9civvy55pa6vv9dx1hjs522gjbbgx7yp1cdh8kj"))
+       (patches
+        (parameterize
+            ((%patch-path
+              (map
+               (lambda (directory)
+                 (string-append directory "/guix-local/packages/patches"))
+               %load-path)))
+        (search-patches
+         ;;patches are created from github issues
+         "lxappearence-gtk3-01-only-do-x11-on-x11.patch"
+         "lxappearence-gtk3-02-set-some-settings-gsettings.patch")))))
+    (build-system gnu-build-system)
+    (inputs (list gtk+ dbus dbus-glib))
+    (arguments '(#:configure-flags '("--enable-gtk3=yes" "--enable-dbus=yes")))
+    (synopsis "LXDE GTK+ theme switcher")
+    (description "LXAppearance is a desktop-independent GTK+ theme switcher
+able to change themes, icons, and fonts used by GTK+ applications.
+This version is configured for supporting GTK+3 and dbus, and applies
+patches from LXDE's github to work on wayland as well.")
+    (home-page "https://lxde.github.io")
+    (license license:gpl2+)))
+
 (define-public lxrandr
   (package
     (name "lxrandr")

base-commit: 0ce1f82e5aaac951b21d579eb46bf75cfe6713c0
prerequisite-patch-id: 36ae907c0ae2cbc001f774c0514ab217855270c2
prerequisite-patch-id: f85768858f3a8b1ef44b6e355dcd7f9254c07d24
prerequisite-patch-id: 2c99b804c1a929fc9d74b4c3d92263cbd296f785
prerequisite-patch-id: 2525aea715c2eb5be5f61e2e14296a36898413ca
prerequisite-patch-id: f7afbf36e2776eced1e69090ec127a40456efca4
prerequisite-patch-id: ba73cf06ab2610e36d03df1f6b6a1c4b8f271cda
prerequisite-patch-id: 9ac4b32603488e776af63831ff13406c649a8686
prerequisite-patch-id: 1cec3e6ed7a13938c53c24f816056d98b2b005c7
prerequisite-patch-id: 011ca6e0eaf4ea7077787d7030f193836c30aa82
prerequisite-patch-id: 4243cf3f6370445e6d583f03231e87921f541cc2
prerequisite-patch-id: 6c88bfec7b2fa53face9523329de4a9102149772
prerequisite-patch-id: d1bed6e8da46c3d6f4017546f7a00c001e814fe1
prerequisite-patch-id: 1fd4327870ef363302c3f61a3d78caa0ae17dc5d
-- 
2.38.1