post_install() {
  if [[ -d /usr/share/fonts ]]; then
    echo -n "Creating X fontdir indices..."
    find /usr/share/fonts -mindepth 1 -path /usr/share/fonts/encodings -prune \
      -o -type d -printf '%p/\n' | /usr/share/libalpm/scripts/xorg-mkfontdir
    echo " done."
  fi
}
