Commit 90a37005 authored by Jeff Huang's avatar Jeff Huang 🤔

[skip-ci] mathjax: update to 2.7.5

parent c04f46df
Pipeline #3395 skipped
# Contributions from Arch:
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Kevin Dodd <jesin00@gmail.com>
# Contributor: Tianjiao Yin <ytj000@gmail.com>
pkgname=mathjax
pkgver=2.7.1
pkgver=2.7.5
pkgrel=1
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')
source=("https://github.com/mathjax/MathJax/archive/${pkgver}.tar.gz")
sha256sums=('2bb4c0c6f326dd1964ecad1d302d2f9f4a3eb4364f89a30d5e3b4b3069597169')
url='https://www.mathjax.org/'
arch=(any)
license=(Apache)
depends=(xorg-mkfontdir fontconfig)
source=("$pkgname-$pkgver.tar.gz::https://github.com/mathjax/MathJax/archive/$pkgver.tar.gz")
sha256sums=('a25e5736553eef7b05ba00df133ad36d8f7b3b967f1e32d2f7505ac77427946f')
prepare() {
cd MathJax-$pkgver
# Remove unneeded stuff, see https://github.com/mathjax/MathJax-docs/wiki/Guide%3A-reducing-size-of-a-mathjax-installation
rm -r docs test unpacked
rm -r fonts/HTML-CSS/TeX/png
for _format in eot otf svg ; do
find . -type d -name "$_format" -prune -exec rm -rf {} \;
done
}
package() {
mkdir -p $pkgdir/usr/share
mv $srcdir/MathJax-* $pkgdir/usr/share/mathjax
mkdir -p "$pkgdir"/usr/share/{fonts,licenses/mathjax}
cp -a MathJax-$pkgver "$pkgdir"/usr/share/mathjax
mv "$pkgdir"/usr/share/mathjax/fonts "$pkgdir"/usr/share/fonts/mathjax
ln -s /usr/share/fonts/mathjax "$pkgdir"/usr/share/mathjax/fonts
mv "$pkgdir"/usr/share/mathjax/LICENSE "$pkgdir"/usr/share/licenses/mathjax/LICENSE
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment