2015-02-19 10:45:00 +01:00
|
|
|
# Template file for 'mathjax'
|
|
|
|
pkgname=mathjax
|
2015-02-28 17:01:01 +01:00
|
|
|
version=2.5.1
|
2015-02-19 10:45:00 +01:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
wrksrc="MathJax-${version}"
|
2015-02-28 17:01:01 +01:00
|
|
|
depends="font-util"
|
2015-02-19 10:45:00 +01:00
|
|
|
font_dirs="/usr/share/fonts/mathjax"
|
|
|
|
short_desc="JavaScript display engine for LaTeX, MathML and AsciiMath"
|
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
|
|
homepage="http://www.mathjax.org/"
|
|
|
|
license="Apache-2.0"
|
|
|
|
distfiles="https://github.com/mathjax/MathJax/archive/${version}.tar.gz"
|
2015-02-28 17:01:01 +01:00
|
|
|
checksum=e294ea66e87900a0a803281d6c13025db38d27e103f4d9e960bfc554ad92c602
|
2015-02-19 10:45:00 +01:00
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir usr/share/mathjax
|
|
|
|
vmkdir usr/share/fonts/mathjax
|
|
|
|
vcopy "MathJax.js config extensions fonts jax images localization test" usr/share/mathjax
|
|
|
|
for d in Asana-Math Gyre-{Pagella,Termes} Latin-Modern Neo-Euler STIX-Web TeX; do
|
|
|
|
ln -sfr ${DESTDIR}/usr/share/mathjax/fonts/HTML-CSS/${d}/otf/*.otf \
|
|
|
|
${DESTDIR}/usr/share/fonts/mathjax
|
|
|
|
done
|
|
|
|
}
|