[arch-commits] Commit in mathjax/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Sep 4 21:34:01 UTC 2019


    Date: Wednesday, September 4, 2019 @ 21:34:00
  Author: arojas
Revision: 508115

Update to 3.0.0

Modified:
  mathjax/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++-------------------
 1 file changed, 6 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-04 21:01:47 UTC (rev 508114)
+++ PKGBUILD	2019-09-04 21:34:00 UTC (rev 508115)
@@ -3,31 +3,18 @@
 # Contributor: Tianjiao Yin <ytj000 at gmail.com>
 
 pkgname=mathjax
-pkgver=2.7.6
+pkgver=3.0.0
 pkgrel=1
 pkgdesc='An open source JavaScript display engine for mathematics that works in all modern browsers'
 url='https://www.mathjax.org/'
 arch=(any)
 license=(Apache)
-depends=(xorg-mkfontdir fontconfig)
 source=("$pkgname-$pkgver.tar.gz::https://github.com/mathjax/MathJax/archive/$pkgver.tar.gz")
-sha256sums=('51a529d3361aa5cb2e1d56a37b3ed9b08f061ddcc893084b3ecefbfa978895f5')
+sha256sums=('6ead7d3367c1c3e1916a1c015d227d7a7c4a456c12841f4dec2ea1e5b22333a1')
 
-prepare() {
+package() {
   cd MathJax-$pkgver
-
-# Remove unneeded stuff, see https://github.com/mathjax/MathJax-docs/wiki/Guide%3A-reducing-size-of-a-mathjax-installation
-  rm -r docs test unpacked
-  rm -r fonts/HTML-CSS/TeX/png
-  for _format in eot otf svg ; do
-   find . -type d -name "$_format" -prune -exec rm -rf {} \;
-  done
+  mkdir -p "$pkgdir"/usr/share
+  cp -a es5 "$pkgdir"/usr/share/mathjax
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
 }
-
-package() {
-  mkdir -p "$pkgdir"/usr/share/{fonts,licenses/mathjax}
-  cp -a MathJax-$pkgver "$pkgdir"/usr/share/mathjax
-  mv "$pkgdir"/usr/share/mathjax/fonts "$pkgdir"/usr/share/fonts/mathjax
-  ln -s /usr/share/fonts/mathjax "$pkgdir"/usr/share/mathjax/fonts
-  mv "$pkgdir"/usr/share/mathjax/LICENSE "$pkgdir"/usr/share/licenses/mathjax/LICENSE
-}


More information about the arch-commits mailing list