PKGBUILD 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Maintainer (Arch): Rémy Oudompheng <remy.archlinux.org>
  2. # Contributor (Hyperbola): André Silva <emulatorman@hyperbola.info>
  3. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  4. # Contributor: Isaac David <isacdaavid@at@isacdaavid@dot@info>
  5. # Contributor: Michał Masłowski <mtjm@mtjm.eu>
  6. # parabola changes and rationale:
  7. # - remvoe nonfree add-on packages
  8. _pkgname=texlive-fontsextra-libre
  9. pkgname=texlive-fontsextra
  10. pkgver=2020.55407
  11. _revnr=${pkgver#2020.}
  12. pkgrel=1
  13. pkgrel+=.par1
  14. pkgdesc="TeX Live - all sorts of extra fonts"
  15. pkgdesc+=", without nonfree add-on packages"
  16. license=('GPL')
  17. arch=(any)
  18. depends=('texlive-core')
  19. groups=('texlive-most')
  20. url='http://tug.org/texlive/'
  21. mksource=("https://sources.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip")
  22. mksha256sums=('25e1060c699f09e02924bf27902b162d7af5a6cc2d0c898f83c09ca0928d9060')
  23. noextract=("$pkgname-$pkgver-src.zip")
  24. source=("https://repo.parabola.nu/other/$_pkgname/$_pkgname-$pkgver-src.tar.xz"{,.sig}
  25. "$pkgname.maps")
  26. options=('!emptydirs')
  27. sha256sums=('c58eb0df24a6ee0b258ca3088f90ec51a20e5b000f645876913b3d84933537df'
  28. 'SKIP'
  29. '6346b4a1fc5a2a2e744715ae2e9462a55255e229e59d0e00ab5957d34bd75f99')
  30. validpgpkeys=('1B8C5E87702444D3D825CC8086ED62396D5DBA58' # Omar Vega Ramos
  31. '38D33EF29A7691134357648733466E12EC7BA943' # Isaac David
  32. '3954A7AB837D0EA9CFA9798925DB7D9B5A8D4B40') # bill-auger
  33. mksource() {
  34. mkdir $pkgname-$pkgver
  35. pushd $pkgname-$pkgver
  36. bsdtar xfv ../$pkgname-$pkgver-src.zip
  37. # remove nonfree packages
  38. # no specific free license
  39. rm -v ogham.tar.xz
  40. popd
  41. }
  42. prepare() {
  43. cd $srcdir/$pkgname-$pkgver
  44. echo -n " --> extracting all packages... "
  45. for p in *.tar.xz; do
  46. bsdtar -xf $p
  47. done
  48. rm -rf {tlpkg,doc,source} || true
  49. # remove nonfree packages references from package list
  50. sed -ri '/^ogham /d' CONTENTS
  51. }
  52. package() {
  53. cd $srcdir/$pkgname-$pkgver
  54. install -m755 -d "$pkgdir"/var/lib/texmf/arch/installedpkgs
  55. sed -i '/^#/d' CONTENTS
  56. install -m644 CONTENTS "$pkgdir"/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs
  57. install -m644 "$srcdir"/$pkgname.maps "$pkgdir"/var/lib/texmf/arch/installedpkgs/
  58. install -m755 -d $pkgdir/usr/share
  59. wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
  60. for dir in $wanteddirs; do
  61. find $dir -type d -exec install -d -m755 "$pkgdir"/usr/share/texmf-dist/'{}' \;
  62. find $dir -type f -exec install -m644 '{}' "$pkgdir"/usr/share/texmf-dist/'{}' \;
  63. done
  64. if [[ -d texmf-dist ]]; then
  65. find texmf-dist -type d -exec install -d -m755 "$pkgdir"/usr/share/'{}' \;
  66. find texmf-dist -type f -exec install -m644 '{}' "$pkgdir"/usr/share/'{}' \;
  67. fi
  68. if [[ -d "$pkgdir"/usr/share/texmf-dist/scripts ]]; then
  69. find "$pkgdir"/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;
  70. fi
  71. }