Date: Wednesday, August 4, 2021 @ 21:07:27 Author: felixonmars Revision: 993771
addpkg: python-latex2mathml 3.61.0-1 Added: python-latex2mathml/ python-latex2mathml/repos/ python-latex2mathml/trunk/ python-latex2mathml/trunk/PKGBUILD ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Added: python-latex2mathml/trunk/PKGBUILD =================================================================== --- python-latex2mathml/trunk/PKGBUILD (rev 0) +++ python-latex2mathml/trunk/PKGBUILD 2021-08-04 21:07:27 UTC (rev 993771) @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-latex2mathml +pkgver=3.61.0 +pkgrel=1 +pkgdesc="Pure Python library for LaTeX to MathML conversion" +url="https://github.com/roniemartinez/latex2mathml" +license=('MIT') +arch=('any') +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-pytest-cov' 'python-multidict' 'python-xmljson') +source=("https://github.com/roniemartinez/latex2mathml/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('a8ae799ff5d24ee92ab89e47dee53e29cd78022484666925c845b7ae1e68f520a779b8c5bd6c36396ecc499cf99319a5ca727d2568e2f1560200c645a7f0a349') + +build() { + cd latex2mathml-$pkgver + python setup.py build +} + +check() { + cd latex2mathml-$pkgver + pytest +} + +package() { + cd latex2mathml-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +}