24 lines
795 B
Plaintext
24 lines
795 B
Plaintext
# Description: A JavaScript display engine for mathematics that works in all browsers
|
|
# URL: https://www.mathjax.org/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: fontconfig xorg-mkfontscale
|
|
|
|
name=mathjax
|
|
version=2.7.6
|
|
release=1
|
|
source=(https://github.com/mathjax/MathJax/archive/$version/MathJax-$version.tar.gz)
|
|
|
|
build() {
|
|
cd MathJax-$version
|
|
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
|
|
mkdir -p $PKG/usr/share/{fonts,licenses/mathjax}
|
|
cp -a $SRC/MathJax-$version $PKG/usr/share/mathjax
|
|
mv $PKG/usr/share/mathjax/fonts $PKG/usr/share/fonts/mathjax
|
|
ln -s /usr/share/fonts/mathjax $PKG/usr/share/mathjax/fonts
|
|
find $PKG -name README.md -delete
|
|
}
|