void-packages/srcpkgs/mathjax/template

24 lines
830 B
Bash

# Template file for 'mathjax'
pkgname=mathjax
version=2.7.6
revision=2
wrksrc="MathJax-${version}"
depends="font-util"
short_desc="JavaScript display engine for LaTeX, MathML and AsciiMath"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="Apache-2.0"
homepage="https://www.mathjax.org/"
distfiles="https://github.com/mathjax/MathJax/archive/${version}.tar.gz"
checksum=51a529d3361aa5cb2e1d56a37b3ed9b08f061ddcc893084b3ecefbfa978895f5
font_dirs="/usr/share/fonts/mathjax"
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
}