# arg 1:  the new package version
post_install() {
  echo -n "Regenerating font encodings... "
  pushd usr/share/fonts/encodings &>/dev/null
  mkfontscale -n -e "/usr/share/fonts/encodings" -e "/usr/share/fonts/encodings/large"
  popd &>/dev/null
  echo "done."
}

post_upgrade() {
  post_install
}

op=$1
shift
$op $*