24 lines
840 B
Bash
24 lines
840 B
Bash
# Template file for 'mathjax'
|
|
pkgname=mathjax
|
|
version=2.7.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="MathJax-${version}"
|
|
depends="font-util"
|
|
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"
|
|
checksum=4944dd3995417c7692b64462698054760d38ff72175f66e2f2a007c5031d5927
|
|
|
|
do_install() {
|
|
vmkdir usr/share/mathjax
|
|
vmkdir usr/share/fonts/mathjax
|
|
vcopy "MathJax.js config extensions fonts jax localization" 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
|
|
}
|