Introduce $gtk_iconcache_dirs to fix the gtk-icon-cache trigger.
--HG-- extra : convert_revision : 1be7864a5554fd3779092adcdf1e9410be5d55a9
This commit is contained in:
parent
b6ed0f2b03
commit
cad15bd3d2
|
@ -90,6 +90,15 @@ _EOF
|
|||
echo >> $tmpf
|
||||
fi
|
||||
|
||||
#
|
||||
# Handle GTK+ Icon cache directories.
|
||||
#
|
||||
if [ -n "${gtk_iconcache_dirs}" ]; then
|
||||
echo "export gtk_iconcache_dirs=\"${gtk_iconcache_dirs}\"" \
|
||||
>> $tmpf
|
||||
echo >> $tmpf
|
||||
fi
|
||||
|
||||
if [ -n "$triggers" ]; then
|
||||
found=1
|
||||
echo "case \"\${ACTION}\" in" >> $tmpf
|
||||
|
|
|
@ -71,7 +71,7 @@ reset_tmpl_vars()
|
|||
build_depends libtool_fixup_la_stage no_fixup_libtool \
|
||||
disable_parallel_build run_depends cross_compiler \
|
||||
only_for_archs patch_args conf_files keep_dirs \
|
||||
noarch subpackages sourcepkg \
|
||||
noarch subpackages sourcepkg gtk_iconcache_dirs \
|
||||
abi_depends api_depends triggers \
|
||||
XBPS_EXTRACT_DONE XBPS_CONFIGURE_DONE \
|
||||
XBPS_BUILD_DONE XBPS_INSTALL_DONE FILESDIR DESTDIR \
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#
|
||||
trigger="gtk-icon-cache"
|
||||
iconcache_bin=./usr/bin/gtk-update-icon-cache
|
||||
iconcache_dir=./usr/share/icons/hicolor
|
||||
|
||||
case "$1" in
|
||||
targets)
|
||||
|
@ -20,10 +19,18 @@ run)
|
|||
|
||||
case "$2" in
|
||||
post-*)
|
||||
if [ -x ${iconcache_bin} ]; then
|
||||
echo "Updating GTK's icon cache themes..."
|
||||
${iconcache_bin} -f -t ${iconcache_dir}
|
||||
fi
|
||||
for dir in ${gtk_iconcache_dirs}; do
|
||||
if [ -f ${dir}/icon-theme.cache ]; then
|
||||
rm -f ${dir}/icon-theme.cache
|
||||
echo "Removed GTK+ icon theme cache for ${dir}."
|
||||
fi
|
||||
if [ -x ${iconcache_bin} ]; then
|
||||
echo -n "Updating GTK+ icon cache for "
|
||||
echo -n "${dir}... "
|
||||
${iconcache_bin} -q -f -t ${dir}
|
||||
echo "done."
|
||||
fi
|
||||
done
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue