template 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Template file for 'texlive-bin'
  2. pkgname=texlive2016-bin
  3. version=2016
  4. revision=3
  5. archs="x86_64* i686 aarch64 arm*"
  6. maintainer="Leah Neukirchen <leah@vuxu.org>"
  7. homepage="http://tug.org/texlive/"
  8. license="GPL-2"
  9. short_desc="TeX Live Binary distribution through tl-install"
  10. depends="cairo pixman graphite gd poppler libsigsegv
  11. zziplib libpng libjpeg-turbo freetype icu harfbuzz wget perl
  12. ghostscript xz"
  13. provides="tex-${version}_1"
  14. distfiles="ftp://ftp.tug.org/texlive/historic/${version}/install-tl-unx.tar.gz>${pkgname}-${version}-${revision}.tar.gz"
  15. checksum=a0559306f4ef1903b92c829a11177dcbf3b85ddb9c6b512a80791e2c543f7d95
  16. create_wrksrc=yes
  17. # Package build options
  18. build_options="basic small medium full"
  19. build_options_default="small"
  20. desc_option_basic="Install TeXLive using scheme-basic"
  21. desc_option_small="Install TeXLive using scheme-small"
  22. desc_option_medium="Install TeXLive using scheme-medium"
  23. desc_option_full="Install TeXLive using scheme-full"
  24. pre_install(){
  25. rm -rf ${wrksrc}/install-tl*/tlpkg/installer/xz \
  26. ${wrksrc}/install-tl*/tlpkg/installer/wget
  27. }
  28. do_install(){
  29. vmkdir opt/texlive${version}-installer
  30. vcopy "install-tl-*/*" /opt/texlive${version}-installer
  31. vinstall ${FILESDIR}/xbps.profile 644 opt/texlive${version}-installer
  32. if [ "$build_option_basic" ]; then
  33. echo "selected_scheme scheme-basic"
  34. elif [ "$build_option_small" ]; then
  35. echo "selected_scheme scheme-small"
  36. elif [ "$build_option_medium" = "medium" ];then
  37. echo "selected_scheme scheme-medium"
  38. elif [ "$build_option_full" ];then
  39. echo "selected_scheme scheme-full"
  40. fi >>${DESTDIR}/opt/texlive${version}-installer/xbps.profile
  41. vlicense ${DESTDIR}/opt/texlive${version}-installer/LICENSE.CTAN
  42. vlicense ${DESTDIR}/opt/texlive${version}-installer/LICENSE.TL
  43. }