[arch-commits] Commit in mathjax2 (3 files)

Antonio Rojas arojas at archlinux.org
Wed Sep 4 21:44:18 UTC 2019


    Date: Wednesday, September 4, 2019 @ 21:44:18
  Author: arojas
Revision: 508118

archrelease: copy trunk to community-staging-any

Added:
  mathjax2/repos/
  mathjax2/repos/community-staging-any/
  mathjax2/repos/community-staging-any/PKGBUILD
    (from rev 508117, mathjax2/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: mathjax2/repos/community-staging-any/PKGBUILD (from rev 508117, mathjax2/trunk/PKGBUILD)
===================================================================
--- repos/community-staging-any/PKGBUILD	                        (rev 0)
+++ repos/community-staging-any/PKGBUILD	2019-09-04 21:44:18 UTC (rev 508118)
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 362427 2018-07-19 17:42:59Z arojas $
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Kevin Dodd <jesin00 at gmail.com>
+# Contributor: Tianjiao Yin <ytj000 at gmail.com>
+
+pkgname=mathjax2
+pkgver=2.7.5
+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)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mathjax/MathJax/archive/$pkgver.tar.gz")
+sha256sums=('a25e5736553eef7b05ba00df133ad36d8f7b3b967f1e32d2f7505ac77427946f')
+
+prepare() {
+  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
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/{fonts,licenses/mathjax2}
+  cp -a MathJax-$pkgver "$pkgdir"/usr/share/mathjax2
+  mv "$pkgdir"/usr/share/mathjax2/fonts "$pkgdir"/usr/share/fonts/mathjax2
+  ln -s /usr/share/fonts/mathjax2 "$pkgdir"/usr/share/mathjax2/fonts
+  mv "$pkgdir"/usr/share/mathjax2/LICENSE "$pkgdir"/usr/share/licenses/mathjax2/
+}


More information about the arch-commits mailing list