2014-04-30 09:20:25 +00:00
|
|
|
# Template file for 'texlive-bin'
|
|
|
|
pkgname=texlive-bin
|
|
|
|
version=2013
|
2014-04-30 15:44:20 +00:00
|
|
|
revision=2
|
2014-04-30 09:20:25 +00:00
|
|
|
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
|
|
|
|
homepage="http://tug.org/texlive/"
|
|
|
|
license="GPL-2"
|
|
|
|
short_desc="Texlive Binary distribution through tl-install"
|
2014-04-30 15:44:20 +00:00
|
|
|
provides="texlive-${version}_${revision}"
|
2014-04-30 09:20:25 +00:00
|
|
|
depends="cairo pixman graphite t1lib gd poppler libsigsegv
|
|
|
|
zziplib libpng libjpeg-turbo freetype icu harfbuzz wget perl
|
|
|
|
ghostscript"
|
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
distfiles="http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz"
|
|
|
|
checksum="8b200e78b87899349404bdc58b47241291ba7a74846b816a926b02c2fe20aca7"
|
|
|
|
create_wrksrc=yes
|
|
|
|
|
|
|
|
# Package build options
|
|
|
|
build_options="basic small medium full"
|
|
|
|
desc_option_basic="Install TeXLive using scheme-basic"
|
|
|
|
desc_option_small="Install TeXLive using scheme-small"
|
|
|
|
desc_option_medium="Install TeXLive using scheme-medium"
|
|
|
|
desc_option_full="Install TeXLive using scheme-full"
|
|
|
|
|
|
|
|
build_options_default="small"
|
|
|
|
|
|
|
|
pre_install(){
|
2014-04-30 15:44:20 +00:00
|
|
|
_dir="${wrksrc}/install-tl*/tlpkg/installer/xz"
|
2014-04-30 09:20:25 +00:00
|
|
|
rm ${_dir}/*exe ${_dir}/*bsd ${_dir}/*solaris ${_dir}/*irix
|
|
|
|
rm ${_dir}/*alpha-linux ${_dir}/*darwin ${_dir}/*powerpc-linux
|
|
|
|
rm ${_dir}/*arm??-linux ${_dir}/*mipsel-linux
|
|
|
|
rm -rf ${wrksrc}/install-tl*/tlpkg/installer/wget
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install(){
|
|
|
|
vmkdir opt/texlive-installer
|
|
|
|
vcopy "install-tl-*/*" /opt/texlive-installer
|
2014-04-30 15:44:20 +00:00
|
|
|
vinstall ${FILESDIR}/void.profile 644 opt/texlive-installer
|
2014-04-30 09:20:25 +00:00
|
|
|
if [ "$build_options_default" = "basic" ]; then
|
|
|
|
echo "selected_scheme scheme-basic" >> ${DESTDIR}/opt/texlive-installer/void.profile
|
|
|
|
elif [ "$build_options_default" = "small" ]; then
|
|
|
|
echo "selected_scheme scheme-small" >> ${DESTDIR}/opt/texlive-installer/void.profile
|
|
|
|
elif [ "$build_options_default" = "medium" ];then
|
|
|
|
echo "selected_scheme scheme-medium" >> ${DESTDIR}/opt/texlive-installer/void.profile
|
|
|
|
elif [ "$build_options_default" = "full" ];then
|
|
|
|
echo "selected_scheme scheme-full" >> ${DESTDIR}/opt/texlive-installer/void.profile
|
|
|
|
fi
|
|
|
|
vinstall ${DESTDIR}/opt/texlive-installer/LICENSE.CTAN 644 usr/share/licenses/texlive
|
|
|
|
vinstall ${DESTDIR}/opt/texlive-installer/LICENSE.TL 644 usr/share/licenses/texlive
|
2014-04-30 13:36:17 +00:00
|
|
|
vmkdir etc/profile.d
|
2014-04-30 09:20:25 +00:00
|
|
|
# For system environment vars and desktop extra shortcut
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2014-04-30 15:44:20 +00:00
|
|
|
i686)
|
|
|
|
sed -e 's/@@ARCH@@/i386-linux/' ${FILESDIR}/texlive.sh \
|
|
|
|
> ${DESTDIR}/etc/profile.d/texlive.sh
|
|
|
|
rm ${DESTDIR}/opt/texlive-installer/tlpkg/installer/xz/xzdec.x86_64-linux
|
|
|
|
;;
|
|
|
|
x86_64)
|
|
|
|
sed -e 's/@@ARCH@@/x86_64-linux/' ${FILESDIR}/texlive.sh \
|
|
|
|
> ${DESTDIR}/etc/profile.d/texlive.sh
|
|
|
|
rm ${DESTDIR}/opt/texlive-installer/tlpkg/installer/xz/xzdec.i386-linux
|
|
|
|
;;
|
2014-04-30 09:20:25 +00:00
|
|
|
esac
|
|
|
|
}
|