void-packages/srcpkgs/balsa/patches/gtk-iconcache.patch

31 lines
1.3 KiB
Diff
Raw Normal View History

2024-02-25 14:05:12 +01:00
From c7bfec5fc780fa04813f303321a93ad80bf25a4a Mon Sep 17 00:00:00 2001
From: Peter Bloomfield <peterbloomfield@bellsouth.net>
Date: Sat, 23 Sep 2023 14:37:29 +0000
Subject: [PATCH] images/meson.build: Ensure icon_cache_dir exists
---
images/meson.build | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/images/meson.build b/images/meson.build
index 049891c20..9e1cce35a 100644
--- a/images/meson.build
+++ b/images/meson.build
@@ -17,9 +17,13 @@ balsa_imgs = [
balsa_bitmaps_dir = join_paths(get_option('datadir'), 'balsa', 'pixmaps')
install_data(balsa_imgs, install_dir : balsa_bitmaps_dir)
-gtk_update_icon_cache_program = find_program('gtk-update-icon-cache')
+gtk_update_icon_cache_program = find_program('gtk-update-icon-cache', required : false)
if gtk_update_icon_cache_program.found()
icon_cache_dir = join_paths(get_option('prefix'), get_option('datadir'), 'balsa')
+ mkdir_program = find_program('mkdir', required : false)
+ if mkdir_program.found()
+ run_command(mkdir_program, '-p', icon_cache_dir, check : false)
+ endif # mkdir_program.found()
if meson.version().version_compare('>=0.55')
meson.add_install_script(gtk_update_icon_cache_program, '--ignore-theme-index', icon_cache_dir)
else # meson.version().version_compare('>=0.55')
--
GitLab