template 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Template file for 'texlive2014-bin'
  2. pkgname=texlive2014-bin
  3. version=2014
  4. revision=9
  5. archs="x86_64* i686 aarch64 arm*"
  6. create_wrksrc=yes
  7. depends="cairo pixman graphite gd poppler libsigsegv
  8. zziplib libpng libjpeg-turbo freetype icu harfbuzz wget perl
  9. ghostscript xz"
  10. provides="tex-${version}_1"
  11. short_desc="TeX Live Binary distribution through tl-install"
  12. maintainer="Leah Neukirchen <leah@vuxu.org>"
  13. license="GPL-2"
  14. homepage="http://tug.org/texlive/"
  15. distfiles="ftp://ftp.tug.org/texlive/historic/${version}/tlnet-final/install-tl-unx.tar.gz"
  16. checksum=051e6425d604767eb12289c67c87ccdb1af0750b0b1d22383fd9387926234217
  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. }