mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
38 lines
909 B
Text
38 lines
909 B
Text
pre_install() {
|
|
cat >> /usr/share/texmf-config/web2c/updmap.cfg <<EOF
|
|
Map cmcyr.map
|
|
Map lscy.map
|
|
Map mntz.map
|
|
EOF
|
|
}
|
|
|
|
post_install() {
|
|
echo ">>> texlive: updating the filename database..."
|
|
texconfig-sys rehash
|
|
echo ">>> texlive: updating the fontmap files with updmap..."
|
|
updmap-sys --quiet --nohash
|
|
echo " done."
|
|
}
|
|
|
|
post_upgrade() {
|
|
echo ">>> texlive: updating the filename database..."
|
|
texconfig-sys rehash
|
|
echo ">>> texlive: updating the fontmap files with updmap..."
|
|
updmap-sys --quiet --nohash
|
|
echo " done."
|
|
}
|
|
|
|
pre_remove() {
|
|
MAPS="cmcyr.map
|
|
lscy.map
|
|
mntz.map"
|
|
for m in $MAPS; do sed -i "/^M.\+$m/d" /usr/share/texmf-config/web2c/updmap.cfg ; done
|
|
}
|
|
|
|
post_remove() {
|
|
echo ">>> texlive: updating the filename database..."
|
|
texconfig-sys rehash
|
|
echo ">>> texlive: updating the fontmap files with updmap..."
|
|
updmap-sys --quiet --nohash
|
|
echo " done."
|
|
}
|