46 lines
1.7 KiB
Bash
46 lines
1.7 KiB
Bash
# Template file for 'texlive2017-bin'
|
|
pkgname=texlive2017-bin
|
|
version=2017
|
|
revision=5
|
|
archs="x86_64* i686 aarch64 arm*"
|
|
create_wrksrc=yes
|
|
depends="cairo pixman graphite gd poppler libsigsegv
|
|
zziplib libpng libjpeg-turbo freetype icu harfbuzz wget perl
|
|
ghostscript xz"
|
|
short_desc="TeX Live Binary distribution through tl-install"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later, LPPL-1.3c"
|
|
homepage="http://tug.org/texlive/"
|
|
distfiles="ftp://ftp.tug.org/texlive/historic/${version}/install-tl-unx.tar.gz>${pkgname}-${version}-${revision}.tar.gz"
|
|
checksum=d4e07ed15dace1ea7fabe6d225ca45ba51f1cb7783e17850bc9fe3b890239d6d
|
|
provides="tex-${version}_1"
|
|
|
|
# Package build options
|
|
build_options="basic small medium full"
|
|
build_options_default="small"
|
|
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"
|
|
|
|
pre_install() {
|
|
rm -rf ${wrksrc}/install-tl*/tlpkg/installer/xz \
|
|
${wrksrc}/install-tl*/tlpkg/installer/wget
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir opt/texlive${version}-installer
|
|
vcopy "install-tl-*/*" /opt/texlive${version}-installer
|
|
vinstall ${FILESDIR}/void.profile 644 opt/texlive${version}-installer
|
|
if [ "$build_option_basic" ]; then
|
|
echo "selected_scheme scheme-basic"
|
|
elif [ "$build_option_small" ]; then
|
|
echo "selected_scheme scheme-small"
|
|
elif [ "$build_option_medium" = "medium" ];then
|
|
echo "selected_scheme scheme-medium"
|
|
elif [ "$build_option_full" ];then
|
|
echo "selected_scheme scheme-full"
|
|
fi >>${DESTDIR}/opt/texlive${version}-installer/void.profile
|
|
vlicense ${DESTDIR}/opt/texlive${version}-installer/LICENSE.CTAN
|
|
vlicense ${DESTDIR}/opt/texlive${version}-installer/LICENSE.TL
|
|
}
|