extra/texlive-bin to 2018.48691-1

This commit is contained in:
Kevin Mihelich 2018-12-02 20:49:40 +00:00
parent 03dda02581
commit 9542e0ae55

View file

@ -8,22 +8,23 @@
# drop clisp and ffcall makedepends
pkgname=('texlive-bin' 'libsynctex')
pkgver=2018.47465
pkgrel=5
pkgver=2018.48691
pkgrel=1
license=('GPL')
arch=('x86_64')
makedepends=('cairo' 'pixman' 'graphite' 't1lib' 'gd' 'poppler'
makedepends=('git' 'cairo' 'pixman' 'graphite' 't1lib' 'gd' 'poppler'
'libsigsegv' 'zziplib' 'libpng' 'libjpeg' 'freetype2'
'icu' 'harfbuzz' 'harfbuzz-icu' 'gmp' 'mpfr' 'potrace' 'libpaper'
'perl')
url='http://tug.org/texlive/'
source=("https://sources.archlinux.org/other/texlive/texlive-bin-source-${pkgver}.tar.xz"
_commit=f68b0992e13a2e155d71beb3e016ea4139023224 # texlive-2018.2
source=("git+https://github.com/Tex-Live/texlive-source.git#commit=${_commit}"
"poppler-compat-fixes-up-to-0.70.patch"
"luatex-poppler-0.70-const-fixes.patch"
"texlive-poppler-0.71.patch"
"freetype-pkgconfig.patch"
"synctex-missing-header.patch")
sha256sums=('06d7a1c939cf7d6035850cefca1d01898ae51a879e20db684a202fd507a0cae5'
sha256sums=('SKIP'
'1a76b4be5544e431b60dace28169870a8b275e6d80323f9ef7f49b7da8df0b29'
'f1d8b23f3072001fae5f2147aa4a50520d89fbc5b683c0da10b1417e52173c7a'
'd8d2fde2f0978238a923b95d063adb7c84e8abde9ac808166bcfa0e3fc8a9c98'
@ -31,21 +32,19 @@ sha256sums=('06d7a1c939cf7d6035850cefca1d01898ae51a879e20db684a202fd507a0cae5'
'b6c81eb091b5910226e0359768edd178680debee56b63ab0a3753c3429c28ab0')
prepare() {
cd "$srcdir/source"
cd "$srcdir/texlive-source"
# Synctex "make install" misses synctex_version.h
patch -Np1 -i "${srcdir}/synctex-missing-header.patch"
# Freetype2 2.9.1 package no longer has freetype-config
patch -Np1 -i "${srcdir}/freetype-pkgconfig.patch"
./reautoconf
# t4ht expects to be un /usr/share/texmf/bin/t4ht (FS#27251)
sed -i s/SELFAUTOPARENT/TEXMFROOT/ texk/tex4htk/t4ht.c
## prevent compiling Xdvi with libXp
sed -i~ 's|-lXp ||' texk/xdvik/configure
# upstream compat fixes for latest poppler
patch -Np1 -i "${srcdir}/poppler-compat-fixes-up-to-0.70.patch"
# fix build with poppler 0.71
@ -60,11 +59,10 @@ prepare() {
}
build() {
cd "$srcdir"
cd "$srcdir/texlive-source"
#############################################################
### configure
cd source
mkdir -p Work
cd Work
echo "--> Initial configuration..."
@ -124,7 +122,7 @@ package_libsynctex() {
pkgdesc='Library for synchronization between TeX files and resulting file'
depends=('glibc' 'zlib')
cd "${srcdir}/source/Work"
cd "${srcdir}/texlive-source/Work"
make -C texk/web2c DESTDIR="${pkgdir}" \
install-data-am install-libLTLIBRARIES
}
@ -140,11 +138,10 @@ package_texlive-bin() {
'biber: for bibliography processing')
options=('!strip')
cd "$srcdir"
cd "$srcdir/texlive-source"
#############################################################
### install
cd source
# fixes for xindy
find utils/xindy -name Makefile -exec sed -i -e "s|^prefix =.\+$|prefix = $pkgdir/usr|" -e "s|^mandir =.\+$|mandir = \${prefix}/share/man|" -e "s|^datadir =.\+$|datadir = \${datarootdir}/texmf|" -e "s|^docdir =.\+$|docdir = \${datadir}/doc/xindy|" '{}' \;