updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / ttf-thai-latex / ttf-thai-latex.install
blobd6e2956a0c68e6aceda11a605afce7a7f84b2b83
1 install_thailatex_fonts() {
2     echo ">>> thailatex: patching babel.sty..."
3     sync-babel || return 1
4     echo ">>> thailatex: updating the filename database..."
5     echo ">>> thailatex: updating the fontmap files with updmap..."
6     sync-thailatex || return 1
9 remove_thailatex_fonts() {
10     echo ">>> thailatex: updating the filename database..."
11     texconfig-sys rehash
12     echo ">>> thailatex: updating the fontmap files with updmap..."
13     updmap-sys --quiet --disable thai.map
16 update_font_cache() {
17   echo -n "Updating font cache... "
18   fc-cache -fs > /dev/null
19   mkfontscale usr/share/fonts/TTF
20   mkfontdir usr/share/fonts/TTF
21   echo "done."
24 post_install() {
25   install_thailatex_fonts $1
26   update_font_cache $1
29 post_upgrade() {
30   post_install $1
33 post_remove() {
34   remove_thailatex_fonts $1
35   update_font_cache $1