Skip to content

Commit

Permalink
boulder: Add %gtk_update_icon_cache action macro
Browse files Browse the repository at this point in the history
Most icon themes benefit from having their icon cache pre-generated at
build time.

The invocation for doing so follows a distinct pattern, hence this macro
could perhaps be gainfully used as a simpler substitution.

For convenience, the macro dependes on `binary(gtk-update-icon-cache)`.

Signed-off-by: Rune Morling <ermo@serpentos.com>
  • Loading branch information
ermo committed Dec 27, 2024
1 parent baaea9a commit 058f521
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions boulder/data/macros/actions/misc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
actions:

- gtk_update_icon_cache:
description: Pregenerate icon cache at build time
example: |
%gtk_update_icon_cache
command: |
for i in %(installroot)%(datadir)/icons/*/; do
gtk-update-icon-cache -f $i
done
dependencies:
binary(gtk-update-icon-cache)

- install_bin:
description: Install files to %(bindir)
example: |
Expand Down

0 comments on commit 058f521

Please sign in to comment.