Source

pkgbuilds / thailatex / thailatex.install

Full commit
install_thailatex_fonts() {
    echo ">>> thailatex: patching babel.sty..."
    sync-babel || return 1
    echo ">>> thailatex: updating the filename database..."
    echo ">>> thailatex: updating the fontmap files with updmap..."
    sync-thailatex || return 1
}

remove_thailatex_fonts() {
    echo ">>> thailatex: updating the filename database..."
    texconfig-sys rehash
    echo ">>> thailatex: updating the fontmap files with updmap..."
    updmap-sys --quiet --disable thai.map
}

post_install() {
  install_thailatex_fonts $1
}

post_remove() {
  remove_thailatex_fonts $1
}