Date: Wednesday, August 4, 2021 @ 21:10:15 Author: felixonmars Revision: 993774
addpkg: python-ziamath 0.3-1 Added: python-ziamath/ python-ziamath/repos/ python-ziamath/trunk/ python-ziamath/trunk/PKGBUILD ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Added: python-ziamath/trunk/PKGBUILD =================================================================== --- python-ziamath/trunk/PKGBUILD (rev 0) +++ python-ziamath/trunk/PKGBUILD 2021-08-04 21:10:15 UTC (rev 993774) @@ -0,0 +1,36 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-ziamath +pkgver=0.3 +pkgrel=1 +pkgdesc="Render MathML and LaTeX Math to SVG without Latex installation" +url="https://ziamath.readthedocs.io/" +license=('MIT') +arch=('any') +depends=('python-ziafont') +optdepends=('python-latex2mathml: for latex support') +makedepends=('python-setuptools') +checkdepends=('python-latex2mathml' 'python-nbval' 'python-pytest-runner') +source=("$pkgname-$pkgver.tar.gz::https://bitbucket.org/cdelker/ziamath/get/$pkgver.tar.bz2") +sha512sums=('7d9511f1e15b728e2cb7cde82eff12752a60f8dfd6e20766ca58404e1e495bb98ee408cf0253d6f36f675aaab440500631f9e1ee650a8192ab32e6b5774d1e16') + +prepare() { + mv cdelker-ziamath-* ziamath-$pkgver +} + +build() { + cd ziamath-$pkgver + python setup.py build +} + +check() { + cd ziamath-$pkgver + python setup.py pytest --addopts --nbval || echo "Tests failed" +} + +package() { + cd ziamath-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ +}