depends: libxcb_util_cursor: add flatpak icon search dir
authortobtoht <tob@featherwallet.org>
Fri, 11 Apr 2025 03:22:30 +0000 (05:22 +0200)
committertobtoht <tob@featherwallet.org>
Fri, 11 Apr 2025 03:22:30 +0000 (05:22 +0200)
contrib/depends/packages/libxcb_util_cursor.mk
contrib/depends/patches/libxcb_util_cursor/flatpak.patch [new file with mode: 0644]

index ef2b66ca9ec78cf381bf0a70802ae52d44bb6d89..0a7c61610ae91539cb9981aa64710680480127bf 100644 (file)
@@ -4,6 +4,7 @@ $(package)_download_path=https://xcb.freedesktop.org/dist
 $(package)_file_name=xcb-util-cursor-$($(package)_version).tar.gz
 $(package)_sha256_hash=0e9c5446dc6f3beb8af6ebfcc9e27bcc6da6fe2860f7fc07b99144dfa568e93b
 $(package)_dependencies=libxcb libxcb_util_render libxcb_util_image
+$(package)_patches=flatpak.patch
 
 define $(package)_set_vars
 $(package)_config_opts := --disable-shared --disable-devel-docs --without-doxygen
@@ -11,6 +12,7 @@ $(package)_config_opts += --disable-dependency-tracking --enable-option-checking
 endef
 
 define $(package)_preprocess_cmds
+  patch -p1 -i $($(package)_patch_dir)/flatpak.patch && \
   cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub .
 endef
 
diff --git a/contrib/depends/patches/libxcb_util_cursor/flatpak.patch b/contrib/depends/patches/libxcb_util_cursor/flatpak.patch
new file mode 100644 (file)
index 0000000..1b11909
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/configure b/configure
+index 6d37be5..4dc4ff5 100755
+--- a/configure
++++ b/configure
+@@ -20228,7 +20228,7 @@ printf "%s\n" "yes" >&6; }
+ fi
+-DEF_CURSORPATH="~/.icons:/usr/share/icons:/usr/share/pixmaps:/usr/X11R6/lib/X11/icons"
++DEF_CURSORPATH="~/.icons:/usr/share/icons:/usr/share/pixmaps:/usr/X11R6/lib/X11/icons:/run/host/share/icons"
+ # Check whether --with-cursorpath was given.
+ if test ${with_cursorpath+y}