Source

pkgbuilds / ttf-latex-tlwg / ttf-latex-tlwg.install

Full commit
update_font_cache() {
  echo -n "Updating font cache... "
  fc-cache -fs > /dev/null
  mkfontscale usr/share/fonts/TTF
  mkfontdir usr/share/fonts/TTF
  echo "done."
}

post_install() {
  update_font_cache $1
}

post_upgrade() {
  post_install $1
}

post_remove() {
  post_install $1
}