template 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Template file for 'texlive-bin'
  2. pkgname=texlive2020-bin
  3. version=2020
  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. distfiles="ftp://ftp.tug.org/texlive/historic/${version}/install-tl-unx.tar.gz>${pkgname}-${version}-${revision}.tar.gz"
  14. checksum=7c90a50e55533d57170cbc7c0370a010019946eb18570282948e1af6f809382d
  15. create_wrksrc=yes
  16. # Package build options
  17. build_options="basic small medium full"
  18. build_options_default="small"
  19. desc_option_basic="Install TeXLive using scheme-basic"
  20. desc_option_small="Install TeXLive using scheme-small"
  21. desc_option_medium="Install TeXLive using scheme-medium"
  22. desc_option_full="Install TeXLive using scheme-full"
  23. pre_install() {
  24. rm -rf ${wrksrc}/install-tl*/tlpkg/installer/xz \
  25. ${wrksrc}/install-tl*/tlpkg/installer/wget
  26. }
  27. do_install() {
  28. vmkdir opt/texlive${version}-installer
  29. vcopy "install-tl-*/*" /opt/texlive${version}-installer
  30. vinstall ${FILESDIR}/xbps.profile 644 opt/texlive${version}-installer
  31. if [ "$build_option_basic" ]; then
  32. echo "selected_scheme scheme-basic"
  33. elif [ "$build_option_small" ]; then
  34. echo "selected_scheme scheme-small"
  35. elif [ "$build_option_medium" = "medium" ];then
  36. echo "selected_scheme scheme-medium"
  37. elif [ "$build_option_full" ];then
  38. echo "selected_scheme scheme-full"
  39. fi >>${DESTDIR}/opt/texlive${version}-installer/xbps.profile
  40. vlicense ${DESTDIR}/opt/texlive${version}-installer/LICENSE.CTAN
  41. vlicense ${DESTDIR}/opt/texlive${version}-installer/LICENSE.TL
  42. }