0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 14:56:16 +00:00
termux-packages/x11-packages/gtk3/gtk-update-icon-cache.subpackage.sh
Chongyun Lee c2134d3ee0 gtk-update-icon-cache: add BREAKS field
`share/man/man1/gtk-update-icon-cache.1.gz` is moved from
gtk3 to gtk-update-icon-cache since version 3.24.41, the
latter should have BREAKS field to let the installation
process work as intended.
2024-04-26 00:02:16 +08:00

25 lines
611 B
Bash

TERMUX_SUBPKG_INCLUDE="
bin/gtk-update-icon-cache
share/man/man1/gtk-update-icon-cache.1.gz
"
TERMUX_SUBPKG_DEPENDS="gdk-pixbuf, glib"
TERMUX_SUBPKG_DESCRIPTION="GTK+ icon cache updater"
TERMUX_SUBPKG_BREAKS="gtk3 (<< 3.24.41)"
TERMUX_SUBPKG_REPLACES="gtk3 (<< 3.24.41)"
termux_step_create_subpkg_debscripts() {
cat <<- EOF > ./triggers
interest-noawait $TERMUX_PREFIX/share/icons
EOF
cat <<- EOF > ./postinst
#!$TERMUX_PREFIX/bin/sh
for i in \$(find "$TERMUX_PREFIX/share/icons" -type f -iname index.theme); do
gtk-update-icon-cache --force --quiet \$(dirname "\${i}")
done
unset i
exit 0
EOF
}