template 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Template file for 'texlive-core'
  2. pkgname=texlive-core
  3. version=2020.55416
  4. revision=1
  5. archs="noarch"
  6. build_style="texmf"
  7. short_desc="TeX Live - core texmf distribution"
  8. maintainer="fosslinux <fosslinux@aussies.space>"
  9. license="GPL-2.0-or-later"
  10. homepage="http://tug.org/texlive"
  11. distfiles="https://sources.archlinux.org/other/texlive/${pkgname}-${version}-src.zip"
  12. checksum=8e025c2dfa4e19dcb6aa5e661874d2c2a158aa2e1a078c11a4ddd6347bd9db45
  13. pre_build() {
  14. # Commands below are taken from `mksource` function of:
  15. # https://git.parabola.nu/abslibre.git/tree/libre/texlive-core/PKGBUILD
  16. # remove nonfree packages
  17. # MeX licensed packages
  18. rm -v {cc-pl,cs,ec,mex,pl}.tar.xz
  19. # public domain, will be relicensed
  20. rm -v context-{account,algorithmic,letter,ruby}.tar.xz
  21. # no specific free license
  22. rm -v euro-ce.tar.xz
  23. }
  24. post_build() {
  25. # Commands below are taken and modified from `prepare` function of:
  26. # https://git.parabola.nu/abslibre.git/tree/libre/texlive-core/PKGBUILD
  27. # remove nonfree packages references from updmap.cfg
  28. sed -i '/ccpl.map/d' build/usr/share/texmf-dist/web2c/updmap.cfg
  29. sed -i '/cs-charter.map/d' build/usr/share/texmf-dist/web2c/updmap.cfg
  30. sed -i '/csfonts.map/d' build/usr/share/texmf-dist/web2c/updmap.cfg
  31. sed -i '/plother.map/d' build/usr/share/texmf-dist/web2c/updmap.cfg
  32. sed -i '/pltext.map/d' build/usr/share/texmf-dist/web2c/updmap.cfg
  33. # remove nonfree packages references from package list
  34. sed -ri '/^(cc-pl|cs|ec|mex|pl|context-(account|algorithmic|fixme|games|letter|ruby)|euro-ce) /d' CONTENTS
  35. }