PKGBUILDs/extra/texlive-bin/PKGBUILD

308 lines
7.7 KiB
Bash
Raw Normal View History

2013-07-10 16:41:40 +00:00
# $Id$
2011-09-17 17:37:29 +00:00
# Maintainer: Rémy Oudompheng <remy@archlinux.org>
# Contributor: francois <francois.archlinux.org>
2011-02-07 14:55:51 +00:00
2011-12-24 08:09:03 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2013-08-03 21:15:44 +00:00
# -fPIC for v6 and v7
# --disable-xindy, remove xindy stuff, segfaults with clisp
# --disable-cxx-runtime-hack
2011-02-07 14:55:51 +00:00
pkgname=texlive-bin
2013-08-03 21:15:44 +00:00
pkgver=2013.30973
2013-10-27 18:15:38 +00:00
pkgrel=6
2011-02-07 14:55:51 +00:00
pkgdesc="TeX Live binaries"
license=('GPL')
arch=('i686' 'x86_64')
2013-08-05 16:05:04 +00:00
depends=('cairo' 'pixman' 'graphite' 't1lib' 'gd' 'poppler>=0.24.0'
2013-08-03 21:15:44 +00:00
'libsigsegv' 'zziplib' 'libpng' 'libjpeg' 'freetype2'
'icu' 'harfbuzz' 'harfbuzz-icu')
2013-07-10 16:41:40 +00:00
makedepends=('perl' 'clisp' 'ffcall')
2011-05-08 18:02:30 +00:00
optdepends=('ed: for texconfig')
2013-08-03 21:15:44 +00:00
provides=('lcdf-typetools' 'kpathsea' 'pdfjam')
2011-02-07 14:55:51 +00:00
conflicts=('pdfjam')
2011-12-24 08:09:03 +00:00
options=('!libtool' '!strip')
2011-02-07 14:55:51 +00:00
url='http://tug.org/texlive/'
2011-09-17 17:37:29 +00:00
install="texlive.install"
2013-08-03 21:15:44 +00:00
source=('fix-fontforge-encoding.patch'
"http://mirrors.kernel.org/archlinux/other/texlive/texlive-bin-source-${pkgver}.tar.xz"
2011-09-17 17:37:29 +00:00
)
2013-08-03 21:15:44 +00:00
md5sums=('bfb9716aa00c86c08cd31e5b32edeb98'
'0a8ffd5c0002a080a4202057b1f106c6')
2011-05-08 18:02:30 +00:00
2011-02-07 14:55:51 +00:00
build() {
2013-01-12 08:48:50 +00:00
cd "$srcdir"
2013-08-03 21:15:44 +00:00
if [ "${CARCH}" = "x86_64" -o "${CARCH}" = "armv6h" -o "${CARCH}" = "armv7h" ]; then
2011-02-07 14:55:51 +00:00
export CFLAGS="${CFLAGS} -fPIC"
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
# this patch removes spurious error message with locale "xx_YY.utf8"
2013-08-03 21:15:44 +00:00
#patch -Np0 -i fix-fontforge-encoding.patch
2011-11-27 20:44:43 +00:00
# t4ht expects to be un /usr/share/texmf/bin/t4ht (FS#27251)
sed -i s/SELFAUTOPARENT/TEXMFROOT/ source/texk/tex4htk/t4ht.c
2011-02-07 14:55:51 +00:00
#############################################################
### configure
cd source
## prevent compiling Xdvi with libXp
sed -i~ 's|-lXp ||' texk/xdvik/configure
test ! -d Work && mkdir Work
cd Work
echo "--> Initial configuration..."
2012-02-06 15:41:43 +00:00
# we use temporary prefix to avoid messing the existing
# $pkgdir/usr/share/texmf tree
# system zlib is disabled due to issues with zlib 1.2.6 (FS#28221)
2011-02-07 14:55:51 +00:00
../configure --prefix=/usr -C \
2011-12-24 08:09:03 +00:00
--sysconfdir=/etc \
2011-09-17 17:37:29 +00:00
--datarootdir=/usr/share \
--datadir=/usr/share \
--mandir=/usr/share/man \
2011-02-07 14:55:51 +00:00
--disable-native-texlive-build \
2011-05-08 18:02:30 +00:00
--with-banner-add="/Arch Linux" \
2012-07-22 16:56:57 +00:00
--disable-cxx-runtime-hack \
2011-02-07 14:55:51 +00:00
--disable-multiplatform \
--disable-dialog \
--disable-psutils \
--disable-t1utils \
--disable-bibtexu \
--disable-xz \
2013-10-27 18:15:38 +00:00
--enable-shared \
--disable-static \
2012-07-22 16:56:57 +00:00
--with-system-zlib \
--with-system-zziplib \
--with-system-pnglib \
2011-02-07 14:55:51 +00:00
--with-system-ncurses \
--with-system-t1lib \
2012-07-22 16:56:57 +00:00
--with-system-gd \
--with-system-poppler \
--with-system-xpdf \
--with-system-freetype2 \
2013-08-03 21:15:44 +00:00
--with-system-pixman \
--with-system-cairo \
--with-system-harfbuzz \
--with-system-graphite \
--with-system-icu \
2011-02-07 14:55:51 +00:00
--with-freetype2-libdir=/usr/lib \
--with-freetype2-include=/usr/include/freetype2 \
--with-xdvi-x-toolkit=xaw \
--disable-dump-share \
--disable-aleph \
2013-07-10 16:41:40 +00:00
--enable-luatex \
--with-clisp-runtime=default \
2013-08-03 21:15:44 +00:00
--disable-xindy --disable-xindy-rules --disable-xindy-docs
2011-02-07 14:55:51 +00:00
#############################################################
### make
echo "-------------------------------------------------------"
echo "--> Building the whole beast ..."
echo "-------------------------------------------------------"
make
}
package() {
2012-02-06 15:41:43 +00:00
cd "$srcdir"
2011-02-07 14:55:51 +00:00
#############################################################
### install
cd source
2013-07-10 16:41:40 +00:00
# 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|" '{}' \;
2011-02-07 14:55:51 +00:00
echo "-------------------------------------------------------"
echo "--> Proceeding with make install ..."
echo "-------------------------------------------------------"
cd Work
2012-02-06 15:41:43 +00:00
make DESTDIR="${pkgdir}" texmf="$pkgdir"/usr/share/texmf install
rm -rf "${pkgdir}"/usr/{texmf,share/texmf-dist}
2011-12-24 08:09:03 +00:00
2011-09-17 17:37:29 +00:00
## install Perl libraries
2012-02-06 15:41:43 +00:00
mkdir -p "$pkgdir"/usr/share/tlpkg/TeXLive
2013-07-10 16:41:40 +00:00
install -m644 "${srcdir}"/source/utils/biber/TeXLive/*.pm "${pkgdir}/usr/share/tlpkg/TeXLive"
2011-02-07 14:55:51 +00:00
2013-08-03 21:15:44 +00:00
## symlink engines by hand. texlinks has moved to texlive-core...
mkdir -p ${pkgdir}/usr/bin
ln -s eptex ${pkgdir}/usr/bin/platex
ln -s euptex ${pkgdir}/usr/bin/uplatex
ln -s luatex ${pkgdir}/usr/bin/dvilualatex
ln -s luatex ${pkgdir}/usr/bin/dviluatex
ln -s luatex ${pkgdir}/usr/bin/lualatex
ln -s pdftex ${pkgdir}/usr/bin/amstex
ln -s pdftex ${pkgdir}/usr/bin/cslatex
ln -s pdftex ${pkgdir}/usr/bin/csplain
ln -s pdftex ${pkgdir}/usr/bin/eplain
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/mex
ln -s pdftex ${pkgdir}/usr/bin/mllatex
ln -s pdftex ${pkgdir}/usr/bin/mltex
ln -s pdftex ${pkgdir}/usr/bin/pdfetex
2013-09-10 01:33:22 +00:00
ln -s pdftex ${pkgdir}/usr/bin/pdfcslatex
ln -s pdftex ${pkgdir}/usr/bin/pdfcsplain
2013-08-03 21:15:44 +00:00
ln -s pdftex ${pkgdir}/usr/bin/pdfjadetex
ln -s pdftex ${pkgdir}/usr/bin/pdflatex
ln -s pdftex ${pkgdir}/usr/bin/pdfmex
ln -s pdftex ${pkgdir}/usr/bin/pdfxmltex
ln -s pdftex ${pkgdir}/usr/bin/texsis
ln -s pdftex ${pkgdir}/usr/bin/utf8mex
ln -s pdftex ${pkgdir}/usr/bin/xmltex
ln -s xetex ${pkgdir}/usr/bin/xelatex
2011-02-07 14:55:51 +00:00
#############################################################
2011-05-08 18:02:30 +00:00
# remove dangling symlinks
2011-12-24 08:09:03 +00:00
_bibtexextra_scripts="
bibexport
2012-07-22 16:56:57 +00:00
listbib
2013-08-03 21:15:44 +00:00
multibibliography
2011-12-24 08:09:03 +00:00
urlbst
"
2011-05-08 18:02:30 +00:00
_core_scripts="
2013-08-03 21:15:44 +00:00
a2ping
a5toa4
adhocfilelist
2011-05-08 18:02:30 +00:00
afm2afm
2013-08-03 21:15:44 +00:00
allcm
allec
allneeded
arara
2011-05-08 18:02:30 +00:00
arlatex
autoinst
bundledoc
2012-07-22 16:56:57 +00:00
checkcites
2013-08-03 21:15:44 +00:00
chkweb
context
2011-12-24 08:09:03 +00:00
ctanify
ctanupload
2013-08-03 21:15:44 +00:00
ctxtools
2011-05-08 18:02:30 +00:00
de-macro
2013-08-03 21:15:44 +00:00
deweb
2011-12-24 08:09:03 +00:00
dosepsbin
2013-08-03 21:15:44 +00:00
dtxgen
dvi2fax
2011-05-08 18:02:30 +00:00
dviasm
2013-08-03 21:15:44 +00:00
dvired
e2pall
2011-05-08 18:02:30 +00:00
epstopdf
findhyph
2013-08-03 21:15:44 +00:00
fmtutil
fmtutil-sys
fontinst
2011-05-08 18:02:30 +00:00
fragmaster
installfont-tl
2013-08-03 21:15:44 +00:00
kpsepath
kpsetool
kpsewhere
kpsexpand
2011-05-08 18:02:30 +00:00
latex2man
latexdiff
latexdiff-vc
2012-07-22 16:56:57 +00:00
latexfileversion
2011-05-08 18:02:30 +00:00
latexmk
2013-08-03 21:15:44 +00:00
latexpand
2011-05-08 18:02:30 +00:00
latexrevise
listings-ext.sh
2013-08-03 21:15:44 +00:00
ltxfileinfo
lua2dox_filter
luaotfload-tool
luatools
2011-12-24 08:09:03 +00:00
match_parens
mf2pt1
2011-05-08 18:02:30 +00:00
mkjobtexmf
mkluatexfontdb
mkt1font
2013-08-03 21:15:44 +00:00
mktexfmt
2011-05-08 18:02:30 +00:00
mptopdf
2013-08-03 21:15:44 +00:00
mtxrun
2011-05-08 18:02:30 +00:00
ot2kpx
pdf180
pdf270
pdf90
pdfatfi
pdfbook
pdfcrop
pdfflip
pdfjam
pdfjam-pocketmod
pdfjam-slides3up
pdfjam-slides6up
pdfjoin
pdfnup
pdfpun
2013-08-03 21:15:44 +00:00
pfarrei
2011-05-08 18:02:30 +00:00
pkfix
pkfix-helper
2013-08-03 21:15:44 +00:00
ps2eps
ps2frag
pslatex
pstopdf
2011-05-08 18:02:30 +00:00
purifyeps
repstopdf
rpdfcrop
2013-08-03 21:15:44 +00:00
rungs
simpdftex
2011-09-17 17:37:29 +00:00
sty2dtx
2013-08-03 21:15:44 +00:00
texconfig
texconfig-dialog
texconfig-sys
2011-05-08 18:02:30 +00:00
texcount
2011-09-17 17:37:29 +00:00
texdef
2011-05-08 18:02:30 +00:00
texdiff
texdirflatten
2013-08-03 21:15:44 +00:00
texdoc
texdoctk
texexec
texlinks
2011-12-24 08:09:03 +00:00
texliveonfly
2011-05-08 18:02:30 +00:00
texloganalyser
2013-08-03 21:15:44 +00:00
texmfstart
2011-05-08 18:02:30 +00:00
thumbpdf
2013-08-03 21:15:44 +00:00
typeoutfileinfo
updmap
updmap-sys
2011-05-08 18:02:30 +00:00
vpl2ovp
vpl2vpl
"
_htmlxml_scripts="ht htcontext htlatex htmex httex httexi htxelatex htxetex mk4ht"
2013-08-03 21:15:44 +00:00
_langcyrillic_scripts="rubibtex rumakeindex"
_langcjk_scripts="convbkmk ptex2pdf
kanji-fontmap-creator
kanji-config-updmap
kanji-config-updmap-sys
"
2011-05-08 18:02:30 +00:00
_langextra_scripts="ebong"
_langgreek_scripts="mkgrkindex"
2012-07-22 16:56:57 +00:00
_latexextra_scripts="
authorindex
exceltex
makeglossaries
pdfannotextractor
perltex
ps4pdf
splitindex
svn-multi
2011-05-08 18:02:30 +00:00
vpe"
2012-07-22 16:56:57 +00:00
_music_scripts="m-tx musixtex musixflx pmx2pdf"
2011-05-08 18:02:30 +00:00
_pictures_scripts="cachepic epspdf epspdftk fig4latex mathspic"
2012-07-22 16:56:57 +00:00
_pstricks_scripts="pedigree pst2pdf"
2011-05-08 18:02:30 +00:00
_science_scripts="ulqda"
for s in \
${_bibtexextra_scripts} \
2011-09-17 17:37:29 +00:00
${_core_scripts} \
2011-05-08 18:02:30 +00:00
${_htmlxml_scripts} \
2012-07-22 16:56:57 +00:00
${_langcjk_scripts} \
2013-08-03 21:15:44 +00:00
${_langcyrillic_scripts} \
2011-05-08 18:02:30 +00:00
${_langextra_scripts} \
${_langgreek_scripts} \
${_latexextra_scripts} \
2011-09-17 17:37:29 +00:00
${_music_scripts} \
2011-05-08 18:02:30 +00:00
${_pictures_scripts} \
${_pstricks_scripts} \
${_science_scripts} \
tlmgr; do
2013-08-03 21:15:44 +00:00
! readlink -e "$pkgdir"/usr/bin/$s && rm "$pkgdir"/usr/bin/$s
2011-02-07 14:55:51 +00:00
done
###################################################################
}
2013-08-03 21:15:44 +00:00
md5sums=('bfb9716aa00c86c08cd31e5b32edeb98'
'0a8ffd5c0002a080a4202057b1f106c6')