#!/bin/sh
# xbps action script for 'voiced': $1 = action, $2 = pkgname, $3 = version.
#
# Refreshes the fontconfig cache after the bundled fonts are removed, so stale
# entries for /usr/share/fonts/voiced do not linger.
# Never fails the transaction: a missing fc-cache or a cache error is ignored.
case "$1" in
post)
    if command -v fc-cache >/dev/null 2>&1; then
        fc-cache -f /usr/share/fonts/voiced >/dev/null 2>&1 || :
    fi
    ;;
esac
exit 0
