diff options
author | Vale Cofer-Shabica | 2017-09-25 11:49:22 -0400 |
---|---|---|
committer | Vale Cofer-Shabica | 2017-09-25 11:49:22 -0400 |
commit | 0171673278edb95add48026e80603e551324c9c6 (patch) | |
tree | 0ec393dbd4d62e2d6343e8bab37e92efd529e543 /urw-classico.install | |
parent | 8172a37ab1640f59e035f6c48c4ffcb528e0cc5d (diff) | |
download | aur-0171673278edb95add48026e80603e551324c9c6.tar.gz |
simplified install and map update
Diffstat (limited to 'urw-classico.install')
-rw-r--r-- | urw-classico.install | 45 |
1 files changed, 8 insertions, 37 deletions
diff --git a/urw-classico.install b/urw-classico.install index e760e71dbcca..0b49e142cbb2 100644 --- a/urw-classico.install +++ b/urw-classico.install @@ -1,53 +1,24 @@ -PKGNAME="urw-classico" -UPDMAP="etc/texmf/web2c/updmap.cfg" -UPDMAPLOCAL="etc/texmf/web2c/updmap-local.cfg" -SYNCWITHTREES='' - -MAPFILE="var/lib/texmf/arch/installedpkgs/$PKGNAME.maps" +TEXMFLOCAL="/usr/share/texmf" +UPDMAP="fonts/map/dvips/classico/" +MAP="classico.map" post_install() { - TMPFILE=`mktemp` - echo ">>> texlive: saving updmap.cfg as $TMPFILE..." - cp "$UPDMAP" "$TMPFILE" - echo ">>> texlive: regenerating updmap.cfg (custom additions should go" - echo " into /etc/texmf/web2c/updmap-local.cfg" - cp usr/share/texmf-dist/web2c/updmap-hdr.cfg $UPDMAP - cat var/lib/texmf/arch/installedpkgs/*.maps >> $UPDMAP - [ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP echo ">>> texlive: updating the filename database..." - usr/bin/mktexlsr + mktexlsr echo ">>> texlive: updating the fontmap files with updmap..." - usr/bin/updmap-sys --quiet --nohash + cd $TEXMFLOCAL/$UPDMAP + updmap-sys --quiet --enable Map=$MAP echo " done." } post_upgrade() { - #TMPFILE=`mktemp` - #echo ">>> texlive: saving updmap.cfg as $TMPFILE..." - #cp "$UPDMAP" "$TMPFILE" - #echo ">>> texlive: regenerating updmap.cfg (custom additions should go" - #echo " into /etc/texmf/web2c/updmap-local.cfg" - #cp usr/share/texmf-dist/web2c/updmap-hdr.cfg $UPDMAP - #cat var/lib/texmf/arch/installedpkgs/*.maps >> $UPDMAP - #[ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP - #echo ">>> texlive: updating the filename database..." - #usr/bin/mktexlsr - #echo ">>> texlive: updating the fontmap files with updmap..." - #usr/bin/updmap-sys --quiet --nohash $SYNCWITHTREES - #echo " done." post_install } -pre_remove() { -for m in `cut -d' ' -f2 $MAPFILE`; do - sed -i "/\s$m/d" $UPDMAP ; -done -} - post_remove() { echo ">>> texlive: updating the filename database..." - usr/bin/mktexlsr + mktexlsr echo ">>> texlive: updating the fontmap files with updmap..." - usr/bin/updmap-sys --quiet --nohash + updmap-sys --quiet echo " done." } |