[arch-commits] Commit in texlive-bin/repos (10 files)

"Rémy Oudompheng" <r at archlinux.org "Rémy Oudompheng" <r at archlinux.org
Tue Aug 2 06:25:38 UTC 2016


    Date: Tuesday, August 2, 2016 @ 06:25:37
  Author: remy
Revision: 272802

Rebuild for pacman hooks

Added:
  texlive-bin/repos/testing-i686/mktexlsr.hook
  texlive-bin/repos/testing-i686/mktexlsr.script
  texlive-bin/repos/testing-i686/texlive-updmap.hook
  texlive-bin/repos/testing-i686/texlive-updmap.script
  texlive-bin/repos/testing-x86_64/mktexlsr.hook
  texlive-bin/repos/testing-x86_64/mktexlsr.script
  texlive-bin/repos/testing-x86_64/texlive-updmap.hook
  texlive-bin/repos/testing-x86_64/texlive-updmap.script
Modified:
  texlive-bin/repos/testing-i686/PKGBUILD
  texlive-bin/repos/testing-x86_64/PKGBUILD

--------------------------------------+
 testing-i686/PKGBUILD                |   33 ++++++++++++++++++++++++---------
 testing-i686/mktexlsr.hook           |   15 +++++++++++++++
 testing-i686/mktexlsr.script         |   13 +++++++++++++
 testing-i686/texlive-updmap.hook     |   12 ++++++++++++
 testing-i686/texlive-updmap.script   |   17 +++++++++++++++++
 testing-x86_64/PKGBUILD              |   33 ++++++++++++++++++++++++---------
 testing-x86_64/mktexlsr.hook         |   15 +++++++++++++++
 testing-x86_64/mktexlsr.script       |   13 +++++++++++++
 testing-x86_64/texlive-updmap.hook   |   12 ++++++++++++
 testing-x86_64/texlive-updmap.script |   17 +++++++++++++++++
 10 files changed, 162 insertions(+), 18 deletions(-)

Modified: testing-i686/PKGBUILD
===================================================================
--- testing-i686/PKGBUILD	2016-08-02 05:20:41 UTC (rev 272801)
+++ testing-i686/PKGBUILD	2016-08-02 06:25:37 UTC (rev 272802)
@@ -4,7 +4,7 @@
 
 pkgname=('texlive-bin' 'libsynctex')
 pkgver=2016.41290
-pkgrel=2
+pkgrel=2.1
 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: testing-i686/mktexlsr.hook
===================================================================
--- testing-i686/mktexlsr.hook	                        (rev 0)
+++ testing-i686/mktexlsr.hook	2016-08-02 06:25:37 UTC (rev 272802)
@@ -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: testing-i686/mktexlsr.script
===================================================================
--- testing-i686/mktexlsr.script	                        (rev 0)
+++ testing-i686/mktexlsr.script	2016-08-02 06:25:37 UTC (rev 272802)
@@ -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: testing-i686/texlive-updmap.hook
===================================================================
--- testing-i686/texlive-updmap.hook	                        (rev 0)
+++ testing-i686/texlive-updmap.hook	2016-08-02 06:25:37 UTC (rev 272802)
@@ -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: testing-i686/texlive-updmap.script
===================================================================
--- testing-i686/texlive-updmap.script	                        (rev 0)
+++ testing-i686/texlive-updmap.script	2016-08-02 06:25:37 UTC (rev 272802)
@@ -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." 
+

Modified: testing-x86_64/PKGBUILD
===================================================================
--- testing-x86_64/PKGBUILD	2016-08-02 05:20:41 UTC (rev 272801)
+++ testing-x86_64/PKGBUILD	2016-08-02 06:25:37 UTC (rev 272802)
@@ -4,7 +4,7 @@
 
 pkgname=('texlive-bin' 'libsynctex')
 pkgver=2016.41290
-pkgrel=2
+pkgrel=2.1
 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: testing-x86_64/mktexlsr.hook
===================================================================
--- testing-x86_64/mktexlsr.hook	                        (rev 0)
+++ testing-x86_64/mktexlsr.hook	2016-08-02 06:25:37 UTC (rev 272802)
@@ -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: testing-x86_64/mktexlsr.script
===================================================================
--- testing-x86_64/mktexlsr.script	                        (rev 0)
+++ testing-x86_64/mktexlsr.script	2016-08-02 06:25:37 UTC (rev 272802)
@@ -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: testing-x86_64/texlive-updmap.hook
===================================================================
--- testing-x86_64/texlive-updmap.hook	                        (rev 0)
+++ testing-x86_64/texlive-updmap.hook	2016-08-02 06:25:37 UTC (rev 272802)
@@ -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: testing-x86_64/texlive-updmap.script
===================================================================
--- testing-x86_64/texlive-updmap.script	                        (rev 0)
+++ testing-x86_64/texlive-updmap.script	2016-08-02 06:25:37 UTC (rev 272802)
@@ -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