summaryrefslogtreecommitdiff
path: root/pcr/mathjax/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/mathjax/PKGBUILD')
-rw-r--r--pcr/mathjax/PKGBUILD20
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/mathjax/PKGBUILD b/pcr/mathjax/PKGBUILD
new file mode 100644
index 000000000..2bdc6ec67
--- /dev/null
+++ b/pcr/mathjax/PKGBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Kevin Dodd <jesin00@gmail.com>
+# Contributor: Tianjiao Yin <ytj000@gmail.com>
+
+pkgname=mathjax
+pkgver=2.3
+pkgrel=2
+pkgdesc='An open source JavaScript display engine for mathematics that works in all modern browsers'
+url='http://www.mathjax.org/'
+arch=('any')
+license=('Apache')
+options=(!strip libtool staticlibs)
+source=("https://github.com/mathjax/MathJax/archive/v${pkgver}.tar.gz")
+sha256sums=('0cd8f6de29b6c686550098119ab5301bdf60b03aeb8f9f2058e2832a0662687b')
+
+package() {
+ mkdir -p "$pkgdir/usr/share/fonts"
+ mv "$srcdir/MathJax-$pkgver" "$pkgdir/usr/share/mathjax"
+ ln -s '../mathjax/fonts' "$pkgdir/usr/share/fonts/mathjax"
+}
+