user/mathjax2: new aport
This commit is contained in:
parent
18fbd8e348
commit
55c7fdf7d5
1 changed files with 38 additions and 0 deletions
38
user/mathjax2/APKBUILD
Normal file
38
user/mathjax2/APKBUILD
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
|
||||
pkgname=mathjax2
|
||||
pkgver=2.7.9
|
||||
pkgrel=0
|
||||
pkgdesc="An open source JavaScript display engine for mathematics that works in all modern browsers"
|
||||
url="https://www.mathjax.org/"
|
||||
arch=noarch
|
||||
license="Apache-2.0"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/mathjax/MathJax/archive/$pkgver.tar.gz"
|
||||
builddir="$srcdir"/MathJax-$pkgver
|
||||
options="!check" # No testsuite
|
||||
|
||||
build() {
|
||||
# Remove unneeded stuff, see https://github.com/mathjax/MathJax-docs/wiki/Guide%3A-reducing-size-of-a-mathjax-installation
|
||||
for i in docs test unpacked fonts/HTML-CSS/TeX/png; do
|
||||
rm -r $i
|
||||
done
|
||||
for _format in eot otf svg ; do
|
||||
find . -type d -name "$_format" -prune -exec rm -rf {} \;
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p \
|
||||
"$pkgdir"/usr/share/fonts \
|
||||
"$pkgdir"/usr/share/licenses/mathjax2
|
||||
|
||||
cp -a "$builddir" "$pkgdir"/usr/share/mathjax2
|
||||
|
||||
mv "$pkgdir"/usr/share/mathjax2/fonts "$pkgdir"/usr/share/fonts/mathjax2
|
||||
ln -s /usr/share/fonts/mathjax2 "$pkgdir"/usr/share/mathjax2/fonts
|
||||
mv "$pkgdir"/usr/share/mathjax2/LICENSE "$pkgdir"/usr/share/licenses/mathjax2/
|
||||
}
|
||||
sha512sums="
|
||||
ac7b2dfc6064148e941e5ee05361467514e5f28449dbb697ff1df556968ccb71f501c4021ade285cbbb995983513669c14d9c06886a7b83a5c75fa30504fa8ab mathjax2-2.7.9.tar.gz
|
||||
"
|
Loading…
Reference in a new issue