PKGBUILDs/community/texlive-games-doc/texlive.install
2009-10-09 21:15:33 -05:00

34 lines
867 B
Text

pre_install() {
cat >> /usr/share/texmf-config/web2c/updmap.cfg <<EOF
map SkakNew.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="SkakNew.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."
}