107 lines
3.0 KiB
Plaintext
107 lines
3.0 KiB
Plaintext
# Description: TeX distribution for UNIX compatible systems.
|
|
# URL: http://www.tug.org/tetex/
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
# Packager: Danny Rawlins, crux at romster dot me
|
|
# Depends on: clisp icu libgd poppler t1lib util-linux xorg-libxi
|
|
|
|
name=texlive
|
|
version=20150523
|
|
release=1
|
|
source=(ftp://tug.org/historic/systems/texlive/${version:0:4}/$name-$version-texmf.tar.xz
|
|
ftp://tug.org/historic/systems/texlive/${version:0:4}/$name-20150521-source.tar.xz
|
|
http://download.savannah.gnu.org/releases/texi2html/texi2html-5.0.tar.bz2)
|
|
|
|
build() {
|
|
cd $name-20150521-source
|
|
|
|
chmod -R a-s $SRC
|
|
|
|
find $SRC \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \; -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \;
|
|
|
|
# Fix some paths
|
|
sed -i 's|TEXMFROOT = .*|TEXMFROOT = $SELFAUTODIR/share|g' texk/kpathsea/texmf.cnf
|
|
sed -i 's|TEXMFLOCAL = .*|TEXMFLOCAL = $TEXMFROOT/texmf-local|g' texk/kpathsea/texmf.cnf
|
|
|
|
export TEXMFCNF=""
|
|
export KPATHSEA_WARNING=0
|
|
|
|
mkdir build
|
|
cd build
|
|
|
|
../configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--with-banner-add=" $(crux)" \
|
|
--disable-native-texlive-build \
|
|
--enable-largefile \
|
|
--disable-missing \
|
|
--with-xdvi-x-toolkit=xaw \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--with-x \
|
|
--without-etex \
|
|
--disable-xindy \
|
|
--disable-luatex \
|
|
--disable-luajittex \
|
|
--with-clisp-runtime=system \
|
|
--with-system-poppler \
|
|
--with-system-cairo \
|
|
--with-system-pixman \
|
|
--with-system-xpdf \
|
|
--with-system-ncurses \
|
|
--with-system-zlib \
|
|
--with-system-libpng \
|
|
--with-system-t1lib \
|
|
--with-system-gd \
|
|
--with-system-freetype2 \
|
|
--with-system-gmp \
|
|
--with-system-mpfr \
|
|
--with-system-icu
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
cd ..
|
|
|
|
install -d $PKG/usr/lib/perl5/site_perl/5.22/TeXLive
|
|
install texk/tests/TeXLive/TL{Config,Utils}.pm $PKG/usr/lib/perl5/site_perl/5.22/TeXLive
|
|
|
|
# Create symlinks
|
|
PATH="$PKG/usr/bin:$PATH" LD_LIBRARY_PATH+=$PKG/usr/lib \
|
|
texlinks -f $PKG/usr/share/texmf-dist/web2c/fmtutil.cnf $PKG/usr/bin
|
|
|
|
cd $SRC/$name-$version-texmf
|
|
|
|
# Fix some paths
|
|
sed -i 's|TEXMFROOT = .*|TEXMFROOT = $SELFAUTODIR/share|g' texmf-dist/web2c/texmf.cnf
|
|
sed -i 's|TEXMFLOCAL = .*|TEXMFLOCAL = $TEXMFROOT/texmf-local|g' texmf-dist/web2c/texmf.cnf
|
|
|
|
install -d $PKG/usr/share
|
|
|
|
mv $PKG/usr/share/texmf-dist $PKG/usr/share/texmf-dist.tmp
|
|
mv texmf-dist $PKG/usr/share
|
|
|
|
# sub-optimal but better than copying texmf-dist!
|
|
cp -a $PKG/usr/share/texmf-dist.tmp/* $PKG/usr/share/texmf-dist
|
|
rm -r $PKG/usr/share/texmf-dist.tmp
|
|
|
|
cd $SRC/texi2html-*
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/man
|
|
|
|
make
|
|
make install DESTDIR=$PKG
|
|
|
|
rm -r $PKG/usr/share/{info,locale}
|
|
rm -r $PKG/usr/share/texmf-dist/doc
|
|
find $PKG/usr/share/texmf-dist \
|
|
-regex '.*/\(COPYING\|README\|AUTHORS\|INSTALL\|ChangeLog\|NEWS\|TODO\).*' \
|
|
-delete
|
|
}
|