extra/texlive-bin to 2016.41290-4

This commit is contained in:
Kevin Mihelich 2016-08-05 13:02:06 +00:00
parent 0d74e27e62
commit 27cd82ef41
5 changed files with 109 additions and 27 deletions

View file

@ -6,34 +6,35 @@
# -fPIC for v6 and v7
# --disable-xindy, remove xindy stuff, segfaults with clisp
# --disable-cxx-runtime-hack
# drop clisp and ffcall makedepends
pkgname=('texlive-bin' 'libsynctex')
pkgver=2015.37497
pkgrel=12
pkgver=2016.41290
pkgrel=4
license=('GPL')
arch=('i686' 'x86_64')
makedepends=('cairo' 'pixman' 'graphite' 't1lib' 'gd' 'poppler'
'libsigsegv' 'zziplib' 'libpng' 'libjpeg' 'freetype2'
'icu' 'harfbuzz' 'harfbuzz-icu' 'gmp' 'mpfr' 'potrace' 'libpaper'
'perl' 'clisp' 'ffcall')
'perl')
url='http://tug.org/texlive/'
source=('fix-fontforge-encoding.patch'
"http://mirrors.kernel.org/archlinux/other/texlive/texlive-bin-source-${pkgver}.tar.xz")
"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'
'0a8ffd5c0002a080a4202057b1f106c6')
prepare() {
cd source
}
'7303361f2d441eb5c962a996fd77e8fa'
'7bc9cef52d3b0c15d2364b7d8658faa6'
'b8005a998186d3846df357ef0f4b4560'
'c18cbbd000aac60813b1695aa058964f'
'06034157badeeefe9982d7b29e7f5b51')
build() {
cd "$srcdir"
if [ "${CARCH}" = "x86_64" -o "${CARCH}" = "armv6h" -o "${CARCH}" = "armv7h" ]; then
export CFLAGS="${CFLAGS} -fPIC"
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
# this patch removes spurious error message with locale "xx_YY.utf8"
#patch -Np0 -i fix-fontforge-encoding.patch
# t4ht expects to be un /usr/share/texmf/bin/t4ht (FS#27251)
@ -100,14 +101,12 @@ build() {
}
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() {
@ -144,7 +143,6 @@ package_texlive-bin() {
ln -s luatex ${pkgdir}/usr/bin/dvilualatex
ln -s luatex ${pkgdir}/usr/bin/dviluatex
ln -s luatex ${pkgdir}/usr/bin/lualatex
ln -s luatex ${pkgdir}/usr/bin/lualollipop
ln -s pdftex ${pkgdir}/usr/bin/amstex
ln -s pdftex ${pkgdir}/usr/bin/cslatex
ln -s pdftex ${pkgdir}/usr/bin/csplain
@ -152,7 +150,7 @@ package_texlive-bin() {
ln -s pdftex ${pkgdir}/usr/bin/etex
ln -s pdftex ${pkgdir}/usr/bin/jadetex
ln -s pdftex ${pkgdir}/usr/bin/latex
ln -s pdftex ${pkgdir}/usr/bin/lollipop
ln -s tex ${pkgdir}/usr/bin/lollipop
ln -s pdftex ${pkgdir}/usr/bin/mex
ln -s pdftex ${pkgdir}/usr/bin/mllatex
ln -s pdftex ${pkgdir}/usr/bin/mltex
@ -167,7 +165,12 @@ package_texlive-bin() {
ln -s pdftex ${pkgdir}/usr/bin/utf8mex
ln -s pdftex ${pkgdir}/usr/bin/xmltex
ln -s xetex ${pkgdir}/usr/bin/xelatex
ln -s xetex ${pkgdir}/usr/bin/xelollipop
## 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
@ -193,6 +196,7 @@ arlatex
autoinst
bundledoc
checkcites
checklistings
chkweb
cjk-gs-integrate
context
@ -234,6 +238,7 @@ ltximg
lua2dox_filter
luaotfload-tool
luatools
make4ht
match_parens
mf2pt1
mkjobtexmf
@ -248,6 +253,7 @@ pdf270
pdf90
pdfatfi
pdfbook
pdfbook2
pdfcrop
pdfflip
pdfjam
@ -257,6 +263,7 @@ pdfjam-slides6up
pdfjoin
pdfnup
pdfpun
pdfxup
pfarrei
pkfix
pkfix-helper
@ -269,7 +276,9 @@ repstopdf
rpdfcrop
rungs
simpdftex
srcredact
sty2dtx
tex4ebook
texconfig
texconfig-dialog
texconfig-sys
@ -294,6 +303,7 @@ vpl2vpl
"
_games_scripts="rubikrotation"
_htmlxml_scripts="ht htcontext htlatex htmex httex httexi htxelatex htxetex mk4ht"
_humanities_scripts="diadia"
_langcyrillic_scripts="rubibtex rumakeindex"
_langextra_scripts="ebong"
_langgreek_scripts="mkgrkindex"
@ -306,7 +316,9 @@ kanji-config-updmap-sys
_latexextra_scripts="
authorindex
exceltex
makedtx
makeglossaries
makeglossaries-lite
pdfannotextractor
perltex
ps4pdf
@ -316,14 +328,23 @@ vpe
yplan"
_music_scripts="lily-glyph-commands lily-image-commands lily-rebuild-pdfs
m-tx musixtex musixflx pmx2pdf pmxchords"
_pictures_scripts="cachepic epspdf epspdftk fig4latex getmapdl mathspic mkpic"
_pictures_scripts="
cachepic
epspdf
epspdftk
fig4latex
getmapdl
mathspic
mkpic
pn2pdf"
_pstricks_scripts="pedigree pst2pdf"
_science_scripts="pygmentex ulqda"
for s in \
${_bibtexextra_scripts} \
${_core_scripts} \
${_core_scripts} \
${_games_scripts} \
${_htmlxml_scripts} \
${_htmlxml_scripts} \
${_humanities_scripts} \
${_langcyrillic_scripts} \
${_langextra_scripts} \
${_langgreek_scripts} \
@ -340,5 +361,9 @@ m-tx musixtex musixflx pmx2pdf pmxchords"
###################################################################
# 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.*
}

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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."