[arch-commits] Commit in texlive-bin/trunk (5 files)

"Rémy Oudompheng" <r at archlinux.org "Rémy Oudompheng" <r at archlinux.org
Mon Aug 1 23:01:50 UTC 2016


    Date: Monday, August 1, 2016 @ 23:01:50
  Author: remy
Revision: 272795

upgpkg: texlive-bin 2016.41290-4

Define pacman hooks for mktexlsr and updmap.
Cleanup libsynctex package.

Added:
  texlive-bin/trunk/mktexlsr.hook
  texlive-bin/trunk/mktexlsr.script
  texlive-bin/trunk/texlive-updmap.hook
  texlive-bin/trunk/texlive-updmap.script
Modified:
  texlive-bin/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |   33 ++++++++++++++++++++++++---------
 mktexlsr.hook         |   15 +++++++++++++++
 mktexlsr.script       |   13 +++++++++++++
 texlive-updmap.hook   |   12 ++++++++++++
 texlive-updmap.script |   17 +++++++++++++++++
 5 files changed, 81 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-08-01 20:24:18 UTC (rev 272794)
+++ PKGBUILD	2016-08-01 23:01:50 UTC (rev 272795)
@@ -4,7 +4,7 @@
 
 pkgname=('texlive-bin' 'libsynctex')
 pkgver=2016.41290
-pkgrel=3
+pkgrel=4
 license=('GPL')
 arch=('i686' 'x86_64')
 makedepends=('cairo' 'pixman' 'graphite' 't1lib' 'gd' 'poppler'
@@ -14,9 +14,17 @@
 url='http://tug.org/texlive/'
 source=('fix-fontforge-encoding.patch'
         "http://mirrors.kernel.org/archlinux/other/texlive/texlive-bin-source-${pkgver}.tar.xz"
+        "mktexlsr.hook"
+        "mktexlsr.script"
+        "texlive-updmap.hook"
+        "texlive-updmap.script"
 )
 md5sums=('bfb9716aa00c86c08cd31e5b32edeb98'
-         '7303361f2d441eb5c962a996fd77e8fa')
+         '7303361f2d441eb5c962a996fd77e8fa'
+         '7bc9cef52d3b0c15d2364b7d8658faa6'
+         'b8005a998186d3846df357ef0f4b4560'
+         'c18cbbd000aac60813b1695aa058964f'
+         '06034157badeeefe9982d7b29e7f5b51')
 
 build() {
    cd "$srcdir"
@@ -86,14 +94,12 @@
 }
 
 package_libsynctex() {
-   pkgdesc='Library for synchronization between TeX files and resulting file'
-   depends=('glibc' 'zlib')
+    pkgdesc='Library for synchronization between TeX files and resulting file'
+    depends=('glibc' 'zlib')
 
-   install -d "$pkgdir"/usr/lib
-
-   for lib in "$srcdir"/source/Work/texk/web2c/.libs/libsynctex.so*; do
-      cp -P $lib "$pkgdir"/usr/lib/
-   done
+    cd "${srcdir}/source/Work"
+    make -C texk/web2c DESTDIR="${pkgdir}" \
+        install-data-am install-libLTLIBRARIES
 }
 
 package_texlive-bin() {
@@ -153,6 +159,12 @@
    ln -s pdftex ${pkgdir}/usr/bin/xmltex
    ln -s xetex ${pkgdir}/usr/bin/xelatex
 
+   ## install pacman hooks
+   install -D -m644 ${srcdir}/mktexlsr.hook "$pkgdir/usr/share/libalpm/hooks/mktexlsr.hook"
+   install -D -m644 ${srcdir}/texlive-updmap.hook "$pkgdir/usr/share/libalpm/hooks/texlive-updmap.hook"
+   install -D -m755 ${srcdir}/mktexlsr.script "$pkgdir/usr/share/libalpm/scripts/mktexlsr"
+   install -D -m755 ${srcdir}/texlive-updmap.script "$pkgdir/usr/share/libalpm/scripts/texlive-updmap"
+
    #############################################################
    # remove dangling symlinks
    _bibtexextra_scripts="
@@ -344,6 +356,9 @@
    ###################################################################
 
    # remove libsynctex
+   rm -f "$pkgdir"/usr/include/synctex/*
    rm -f "$pkgdir"/usr/lib/libsynctex.*
+   rm -f "$pkgdir"/usr/lib/pkgconfig/synctex.pc
+   rm -f "$pkgdir"/usr/share/man/man*/synctex.*
 }
 

Added: mktexlsr.hook
===================================================================
--- mktexlsr.hook	                        (rev 0)
+++ mktexlsr.hook	2016-08-01 23:01:50 UTC (rev 272795)
@@ -0,0 +1,15 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = etc/texmf/*
+Target = usr/share/texmf/*
+Target = usr/share/texmf-dist/*
+Target = var/lib/texmf/*
+
+[Action]
+Description = Updating TeXLive filename database...
+When = PostTransaction
+Exec = /usr/share/libalpm/scripts/mktexlsr
+

Added: mktexlsr.script
===================================================================
--- mktexlsr.script	                        (rev 0)
+++ mktexlsr.script	2016-08-01 23:01:50 UTC (rev 272795)
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+/usr/bin/mktexlsr
+echo ">>> Updating LuaTeX filename database..."
+(cd /etc/texmf && /usr/bin/mtxrun --generate >/dev/null)
+# We need to remove directory "." from luatex cache to avoid absurd
+# behaviour.
+for item in /var/lib/texmf/luatex-cache/context/*/trees/*.lua; do
+    if grep -F '["root"]="."' "$item" >/dev/null; then
+        rm -vf "$item" "${item%.lua}.luc"
+    fi
+done
+

Added: texlive-updmap.hook
===================================================================
--- texlive-updmap.hook	                        (rev 0)
+++ texlive-updmap.hook	2016-08-01 23:01:50 UTC (rev 272795)
@@ -0,0 +1,12 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = var/lib/texmf/arch/installedpkgs/*.maps
+
+[Action]
+Description = Updating TeXLive font maps...
+When = PostTransaction
+Exec = /usr/share/libalpm/scripts/texlive-updmap
+

Added: texlive-updmap.script
===================================================================
--- texlive-updmap.script	                        (rev 0)
+++ texlive-updmap.script	2016-08-01 23:01:50 UTC (rev 272795)
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+UPDMAP="etc/texmf/web2c/updmap.cfg"
+UPDMAPLOCAL="etc/texmf/web2c/updmap-local.cfg"
+
+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
+if [[ -f "$UPDMAPLOCAL" ]]; then
+    cat "$UPDMAPLOCAL" >> $UPDMAP
+fi
+
+echo ">>> texlive: updating the fontmap files with updmap..."
+/usr/bin/updmap-sys --quiet --nohash
+echo " done." 
+



More information about the arch-commits mailing list