783dc64e4b
--HG-- extra : convert_revision : 38fd5a6f1aea9fc17b8c9055d8a56c9e5f4b8aa7
35 lines
599 B
Bash
Executable file
35 lines
599 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Updates GTK+ icon cache file with gtk-update-icon-cache(1).
|
|
#
|
|
# Arguments: $1 = action [run/targets]
|
|
# $2 = target [post-install/post-remove]
|
|
# $3 = pkgname
|
|
# $4 = version
|
|
#
|
|
trigger="gtk-icon-cache"
|
|
iconcache_bin=./usr/bin/gtk-update-icon-cache
|
|
iconcache_dir=./usr/share/icons/hicolor
|
|
|
|
case "$1" in
|
|
targets)
|
|
echo "post-install post-remove"
|
|
;;
|
|
run)
|
|
echo "Running $trigger trigger..."
|
|
|
|
case "$2" in
|
|
post-*)
|
|
if [ -x ${iconcache_bin} ]; then
|
|
echo "Updating GTK's icon cache themes..."
|
|
${iconcache_bin} -f -t ${iconcache_dir}
|
|
fi
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|