summaryrefslogtreecommitdiff
path: root/libre/texlive-texmf-libre/texlive.install
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2011-08-17 18:13:46 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2011-08-17 18:13:46 +0200
commitf51af576a2b194f881f8f36f7973be928c136eab (patch)
treed8978f2205449f27fb9d6e06d3b50f3385d91fe9 /libre/texlive-texmf-libre/texlive.install
parent9fe3016e5e2a96898b283a0ba14d277dafc8b389 (diff)
downloadabslibre-f51af576a2b194f881f8f36f7973be928c136eab.tar.gz
abslibre-f51af576a2b194f881f8f36f7973be928c136eab.tar.bz2
abslibre-f51af576a2b194f881f8f36f7973be928c136eab.zip
Add texlive-bin-libre, texlive-texmf-libre.
texlive-bin-libre is texlive-bin from Arch modified to have Parabola branding (otherwise different texmf would be confusing) with shared libraries (probably making porting and security updates easier). texlive-texmf-libre is whole texmf-dist of TeXLive 2011 with files known to be nonfree or not useful removed.
Diffstat (limited to 'libre/texlive-texmf-libre/texlive.install')
-rw-r--r--libre/texlive-texmf-libre/texlive.install51
1 files changed, 51 insertions, 0 deletions
diff --git a/libre/texlive-texmf-libre/texlive.install b/libre/texlive-texmf-libre/texlive.install
new file mode 100644
index 000000000..3ec6158ba
--- /dev/null
+++ b/libre/texlive-texmf-libre/texlive.install
@@ -0,0 +1,51 @@
+# From Arch's texlive-core.
+
+PKGNAME="texlive-texmf-libre"
+UPDMAP="etc/texmf/web2c/updmap.cfg"
+UPDMAPLOCAL="etc/texmf/web2c/updmap-local.cfg"
+SYNCWITHTREES=''
+
+post_install() {
+ TMPFILE=`mktemp`
+ echo ">>> texlive: saving updmap.cfg as $TMPFILE..."
+ cp "$UPDMAP" "$TMPFILE"
+ echo ">>> texlive: regenerating updmap.cfg (custom additions shoud go"
+ echo " into /etc/texmf/web2c/updmap-local.cfg"
+ cp usr/share/texmf/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
+ echo " done."
+ echo -n "creating all formats..."
+ usr/bin/fmtutil-sys --all 1>/dev/null
+ echo " done."
+ echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)"
+# TODO needs our documentation
+# echo "NB: To setup ConTeXt and the lua(la)tex font db,"
+# echo " see http://wiki.archlinux.org/index.php/TeX_Live"
+}
+
+post_upgrade() {
+ TMPFILE=`mktemp`
+ echo ">>> texlive: saving updmap.cfg as $TMPFILE..."
+ cp "$UPDMAP" "$TMPFILE"
+ echo ">>> texlive: regenerating updmap.cfg (custom additions shoud go"
+ echo " into /etc/texmf/web2c/updmap-local.cfg"
+ cp usr/share/texmf/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."
+ echo ">>> texlive: recreating all formats..."
+ usr/bin/fmtutil-sys --all 1>/dev/null
+ echo " done."
+ echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)"
+# echo "NB: To setup ConTeXt and the lua(la)tex font db,"
+# echo " see http://wiki.archlinux.org/index.php/TeX_Live"
+}