e7273f1a36
Based on patch by kre in PR 43769.
27 lines
651 B
Cheetah
27 lines
651 B
Cheetah
# $NetBSD: icon-cache.tmpl,v 1.1 2010/10/19 13:09:48 wiz Exp $
|
|
#
|
|
# Rebuild the icon cache.
|
|
#
|
|
|
|
GTK_UPDATE_ICON_CACHE="@GTK_UPDATE_ICON_CACHE@"
|
|
ICON_THEME_DIR="@ICON_THEME_DIR@"
|
|
|
|
case ${STAGE} in
|
|
POST-INSTALL)
|
|
${TEST} -x ${GTK_UPDATE_ICON_CACHE} && \
|
|
${GTK_UPDATE_ICON_CACHE} -f -t ${ICON_THEME_DIR} >/dev/null 2>&1 || \
|
|
${TRUE}
|
|
;;
|
|
DEINSTALL)
|
|
${TEST} "${PKGBASE}" = "gnome-icon-theme" && \
|
|
${RM} -f ${ICON_THEME_DIR}/icon-theme.cache
|
|
;;
|
|
POST-DEINSTALL)
|
|
${TEST} "${PKGBASE}" != "gnome-icon-theme" && \
|
|
${TEST} -x ${GTK_UPDATE_ICON_CACHE} && \
|
|
${GTK_UPDATE_ICON_CACHE} -f -t ${ICON_THEME_DIR} >/dev/null \
|
|
2>&1 || ${TRUE}
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|