From 6e8437652b6de32adec5849e327674ee4a5be24f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 15 Mar 2023 08:21:17 +0700 Subject: [PATCH] New package: mathjax2-2.7.9 --- srcpkgs/mathjax2/template | 22 ++++++++++++++++++++++ srcpkgs/mathjax2/update | 1 + 2 files changed, 23 insertions(+) create mode 100644 srcpkgs/mathjax2/template create mode 100644 srcpkgs/mathjax2/update diff --git a/srcpkgs/mathjax2/template b/srcpkgs/mathjax2/template new file mode 100644 index 00000000000..bc4e5f6fb81 --- /dev/null +++ b/srcpkgs/mathjax2/template @@ -0,0 +1,22 @@ +# Template file for 'mathjax2' +pkgname=mathjax2 +version=2.7.9 +revision=1 +depends="font-util" +short_desc="JavaScript display engine for LaTeX, MathML and AsciiMath" +maintainer="Orphaned " +license="Apache-2.0" +homepage="https://www.mathjax.org/" +distfiles="https://github.com/mathjax/MathJax/archive/refs/tags/${version}.tar.gz" +checksum=c9167279c87da044f2ff910ad573a02ce90354cb59440ae568eb86e1630f65df +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 +} diff --git a/srcpkgs/mathjax2/update b/srcpkgs/mathjax2/update new file mode 100644 index 00000000000..4af56219ddb --- /dev/null +++ b/srcpkgs/mathjax2/update @@ -0,0 +1 @@ +pattern='refs/tags/\K2[.][0-9.]*(?=.tar.gz)'