[arch-commits] Commit in mathjax (4 files)

Antonio Rojas arojas at archlinux.org
Sun Mar 1 10:55:20 UTC 2015


    Date: Sunday, March 1, 2015 @ 11:55:19
  Author: arojas
Revision: 128468

archrelease: copy trunk to community-any

Added:
  mathjax/repos/
  mathjax/repos/community-any/
  mathjax/repos/community-any/PKGBUILD
    (from rev 128467, mathjax/trunk/PKGBUILD)
  mathjax/repos/community-any/mathjax.install
    (from rev 128467, mathjax/trunk/mathjax.install)

-----------------+
 PKGBUILD        |   26 ++++++++++++++++++++++++++
 mathjax.install |   13 +++++++++++++
 2 files changed, 39 insertions(+)

Copied: mathjax/repos/community-any/PKGBUILD (from rev 128467, mathjax/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD	                        (rev 0)
+++ repos/community-any/PKGBUILD	2015-03-01 10:55:19 UTC (rev 128468)
@@ -0,0 +1,26 @@
+# $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)
+depends=(xorg-mkfontdir fontconfig)
+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
+}

Copied: mathjax/repos/community-any/mathjax.install (from rev 128467, mathjax/trunk/mathjax.install)
===================================================================
--- repos/community-any/mathjax.install	                        (rev 0)
+++ repos/community-any/mathjax.install	2015-03-01 10:55:19 UTC (rev 128468)
@@ -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