extra/texlive-bin to 2016.41290-8

This commit is contained in:
Kevin Mihelich 2016-11-21 13:22:21 +00:00
parent 08f89e66af
commit fbb4d95170
6 changed files with 44 additions and 38 deletions

View file

@ -10,7 +10,7 @@
pkgname=('texlive-bin' 'libsynctex')
pkgver=2016.41290
pkgrel=7
pkgrel=8
license=('GPL')
arch=('i686' 'x86_64')
makedepends=('cairo' 'pixman' 'graphite' 't1lib' 'gd' 'poppler'
@ -18,17 +18,20 @@ makedepends=('cairo' 'pixman' 'graphite' 't1lib' 'gd' 'poppler'
'icu' 'harfbuzz' 'harfbuzz-icu' 'gmp' 'mpfr' 'potrace' 'libpaper'
'perl')
url='http://tug.org/texlive/'
source=("http://mirrors.kernel.org/archlinux/other/texlive/texlive-bin-source-${pkgver}.tar.xz"
source=("https://sources.archlinux.org/other/texlive/texlive-bin-source-${pkgver}.tar.xz"
"mktexlsr.hook"
"mktexlsr.script"
"texlive-updmap.hook"
"texlive-updmap.script"
)
"texlive-fmtutil.hook"
"texlive-fmtutil.script")
md5sums=('7303361f2d441eb5c962a996fd77e8fa'
'7bc9cef52d3b0c15d2364b7d8658faa6'
'a4e54f0cb05f401728b2b230fd63b300'
'2bbbef810687f4b2804a4b8cb91ce02f'
'c18cbbd000aac60813b1695aa058964f'
'c64d77b5111a26b9995263b49df4937c')
'0ecdbd88cae12dbeb5d0d63127c5fc38'
'c64d77b5111a26b9995263b49df4937c'
'582af708588fd09eeaa0f08111e60091'
'3f05fa08f84b94fcb3a76be271116a95')
build() {
cd "$srcdir"
@ -113,7 +116,6 @@ package_texlive-bin() {
provides=('lcdf-typetools' 'kpathsea' 'xindy')
optdepends=('ed: for texconfig'
'biber: for bibliography processing')
install="texlive.install"
options=('!strip')
cd "$srcdir"
@ -164,8 +166,10 @@ package_texlive-bin() {
## 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 -m644 ${srcdir}/texlive-fmtutil.hook "$pkgdir/usr/share/libalpm/hooks/texlive-fmtutil.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"
install -D -m755 ${srcdir}/texlive-fmtutil.script "$pkgdir/usr/share/libalpm/scripts/texlive-fmtutil"
#############################################################
# remove dangling symlinks

View file

@ -3,6 +3,7 @@ Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/bin/mktexlsr
Target = etc/texmf/*
Target = usr/share/texmf/*
Target = usr/share/texmf-dist/*

View file

@ -0,0 +1,12 @@
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = var/lib/texmf/arch/installedpkgs/*.fmts
[Action]
Description = Updating TeXLive format files...
When = PostTransaction
Exec = /usr/share/libalpm/scripts/texlive-fmtutil

View file

@ -0,0 +1,19 @@
#!/bin/bash
FMTUTIL="etc/texmf/web2c/fmtutil.cnf"
FMTUTILLOCAL="etc/texmf/web2c/fmtutil-local.cnf"
cp usr/share/texmf-dist/web2c/fmtutil-hdr.cnf $FMTUTIL
for file in var/lib/texmf/arch/installedpkgs/*.fmts; do
echo >> $FMTUTIL
echo "# $file" >> $FMTUTIL
cat $file >> $FMTUTIL
done
if [[ -f "$FMTUTILLOCAL" ]]; then
echo >> $FMTUTIL
echo "# $FMTUTILLOCAL" >> $FMTUTIL
cat "$FMTUTILLOCAL" >> $FMTUTIL
fi
/usr/bin/fmtutil-sys --all --cnffile $FMTUTIL > /dev/null

View file

@ -3,6 +3,7 @@ Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/bin/tex
Target = var/lib/texmf/arch/installedpkgs/*.maps
[Action]

View file

@ -1,31 +0,0 @@
post_install() {
if [[ -f usr/bin/mktexlsr ]]; then
echo ">>> texlive: updating the filename database..."
usr/bin/mktexlsr
fi
if [[ -f usr/bin/fmtutil-sys ]]; then
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)"
fi
}
post_upgrade() {
local corename corever _pacout
if [[ -f usr/bin/mktexlsr ]]; then
echo ">>> texlive: updating the filename database..."
usr/bin/mktexlsr
fi
_pacout=$(pacman -Q texlive-core 2>/dev/null)
read corename corever <<< ${_pacout}
# only recreate formats if texlive-core has right version
if [[ ${corever} == 2014* ]]; then
if [[ -f usr/bin/fmtutil-sys ]]; then
echo -n "recreating all formats..."
usr/bin/fmtutil-sys --all 1>/dev/null
echo " done."
echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)"
fi
fi
}