[arch-commits] Commit in (4 files)

Antonio Rojas arojas at archlinux.org
Sun Mar 1 10:43:35 UTC 2015


    Date: Sunday, March 1, 2015 @ 11:43:35
  Author: arojas
Revision: 128464

Add mathjax, needed to run the Sage IPython notebook with ipython 3

Added:
  mathjax/
  mathjax/trunk/
  mathjax/trunk/PKGBUILD
  mathjax/trunk/mathjax.install

-----------------+
 PKGBUILD        |   25 +++++++++++++++++++++++++
 mathjax.install |   13 +++++++++++++
 2 files changed, 38 insertions(+)

Added: mathjax/trunk/PKGBUILD
===================================================================
--- mathjax/trunk/PKGBUILD	                        (rev 0)
+++ mathjax/trunk/PKGBUILD	2015-03-01 10:43:35 UTC (rev 128464)
@@ -0,0 +1,25 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Kevin Dodd <jesin00 at gmail.com>
+# Contributor: Tianjiao Yin <ytj000 at gmail.com>
+
+pkgname=mathjax
+pkgver=2.5.1
+pkgrel=2
+pkgdesc='An open source JavaScript display engine for mathematics that works in all modern browsers'
+url='https://www.mathjax.org/'
+arch=(any)
+license=(Apache)
+provides=(otf-stix)
+install=$pkgname.install
+source=("https://github.com/mathjax/MathJax/archive/$pkgver.tar.gz")
+sha256sums=('e294ea66e87900a0a803281d6c13025db38d27e103f4d9e960bfc554ad92c602')
+
+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
+  rm -r "$pkgdir"/usr/share/mathjax/unpacked
+}


Property changes on: mathjax/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: mathjax/trunk/mathjax.install
===================================================================
--- mathjax/trunk/mathjax.install	                        (rev 0)
+++ mathjax/trunk/mathjax.install	2015-03-01 10:43:35 UTC (rev 128464)
@@ -0,0 +1,13 @@
+post_install() {
+	fc-cache -s
+	find /usr/share/fonts/mathjax -type d -exec mkfontscale -- {} +
+	find /usr/share/fonts/mathjax -type d -exec mkfontdir -- {} +
+}
+
+post_remove() {
+	post_install "$@"
+}
+
+post_upgrade() {
+	post_install "$@"
+}



More information about the arch-commits mailing list