template 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # Template file for 'texlive-latexextra'
  2. pkgname=texlive-latexextra
  3. version=2020.55418
  4. revision=1
  5. archs="noarch"
  6. build_style="texmf"
  7. depends="perl-File-Which python3-Pygments texlive-core texlive-pictures"
  8. short_desc="TeX Live - Collection of LaTeX addon packages"
  9. maintainer="fosslinux <fosslinux@aussies.space>"
  10. license="GPL-2.0-or-later"
  11. homepage="http://tug.org/texlive/"
  12. distfiles="https://sources.archlinux.org/other/texlive/${pkgname}-${version}-src.zip"
  13. checksum=a2ee21a2a6f00def6bec620a85bb8116de97a16dcd98adaa308eb455fe0e7fcb
  14. pre_build() {
  15. # Commands below are taken from `mksource` function of:
  16. # https://git.parabola.nu/abslibre.git/tree/libre/texlive-latexextra/PKGBUILD
  17. # remove nonfree packages
  18. # no specific free license
  19. rm -v {authoraftertitle,clock,fnpara}.tar.xz
  20. # nonfree license (CC BY-NC)
  21. rm -v axessibility.tar.xz
  22. }
  23. post_build() {
  24. # Commands below are taken from `prepare` function of:
  25. # https://git.parabola.nu/abslibre.git/tree/libre/texlive-latexextra/PKGBUILD
  26. # remove nonfree packages references from package list
  27. sed -ri '/^(axessibility|authoraftertitle|fnpara) /d' CONTENTS
  28. }