PKGBUILD 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Maintainer (arch): Rémy Oudompheng <remy.archlinux.org>
  2. # Contributor: 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=2023.66328
  11. _revnr=${pkgver#2023.}
  12. pkgrel=1
  13. pkgrel+=.par2
  14. pkgdesc="TeX Live - all sorts of extra fonts"
  15. license=('GPL')
  16. arch=(any)
  17. depends=('texlive-core')
  18. groups=('texlive-most')
  19. url='http://tug.org/texlive/'
  20. mksource=("https://sources.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip")
  21. mksha256sums=('c5e32f213ec81a5e85f36437d401331b49a1338dacdc2fe8bb27f9f0fbaf2e36')
  22. noextract=("$pkgname-$pkgver-src.zip")
  23. source=("https://repo.parabola.nu/other/$_pkgname/$_pkgname-$pkgver-src.tar.xz"{,.sig}
  24. "$pkgname.maps")
  25. options=('!emptydirs')
  26. sha256sums=('449e04f5eb236f2cd56f6935436d226cd1239600e4821157c4aed46c2129cb07'
  27. 'SKIP'
  28. '4094810431f2496a2b8c6210520d8b363a030b90a26728e8514700554ac97b7a')
  29. validpgpkeys=('1B8C5E87702444D3D825CC8086ED62396D5DBA58' # Omar Vega Ramos
  30. '38D33EF29A7691134357648733466E12EC7BA943' # Isaac David
  31. '3954A7AB837D0EA9CFA9798925DB7D9B5A8D4B40' # bill-auger
  32. 'BFA8008A8265677063B11BF47171986E4B745536') # oaken-source
  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. build() {
  43. cd $srcdir/$pkgname-$pkgver
  44. for p in *.tar.xz; do
  45. bsdtar -xf $p
  46. done
  47. rm -rf {tlpkg,doc,source} || true
  48. # remove nonfree packages references from package list
  49. sed -ri '/^ogham /d' CONTENTS
  50. }
  51. package() {
  52. cd $srcdir/$pkgname-$pkgver
  53. install -m755 -d "$pkgdir"/var/lib/texmf/arch/installedpkgs
  54. sed -i '/^#/d' CONTENTS
  55. install -m644 CONTENTS "$pkgdir"/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs
  56. install -m644 "$srcdir"/$pkgname.maps "$pkgdir"/var/lib/texmf/arch/installedpkgs/
  57. install -m755 -d "$pkgdir"/usr/share
  58. wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
  59. for dir in $wanteddirs; do
  60. find $dir -type d -exec install -d -m755 "$pkgdir"/usr/share/texmf-dist/'{}' \;
  61. find $dir -type f -exec install -m644 '{}' "$pkgdir"/usr/share/texmf-dist/'{}' \;
  62. done
  63. if [[ -d texmf-dist ]]; then
  64. find texmf-dist -type d -exec install -d -m755 "$pkgdir"/usr/share/'{}' \;
  65. find texmf-dist -type f -exec install -m644 '{}' "$pkgdir"/usr/share/'{}' \;
  66. fi
  67. if [[ -d "$pkgdir"/usr/share/texmf-dist/scripts ]]; then
  68. find "$pkgdir"/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;
  69. fi
  70. }