Date: Tuesday, November 1, 2022 @ 20:50:39
Author: felixonmars
Revision: 1340325
archrelease: copy trunk to community-any
Added:
python-latex2mathml/repos/community-any/PKGBUILD
(from rev 1340324, python-latex2mathml/trunk/PKGBUILD)
Deleted:
python-latex2mathml/repos/community-any/PKGBUILD
----------+
PKGBUILD | 70 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 35 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-01 20:50:31 UTC (rev 1340324)
+++ PKGBUILD 2022-11-01 20:50:39 UTC (rev 1340325)
@@ -1,35 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-latex2mathml
-pkgver=3.73.1
-pkgrel=1
-pkgdesc="Pure Python library for LaTeX to MathML conversion"
-url="https://github.com/roniemartinez/latex2mathml"
-license=('MIT')
-arch=('any')
-depends=('python-setuptools')
-checkdepends=('python-pytest' 'python-multidict' 'python-xmljson')
-source=("https://github.com/roniemartinez/latex2mathml/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('4525e1cb8f3733c9adf875ed79e18eb862930458ad429989de48e7fba250d7cabd943aa58afd91ac543691d6837e442490cdc66e7ea44826c326dedf1e673054')
-
-prepare() {
- cd latex2mathml-$pkgver
- sed -i '/--cov/d' pyproject.toml
-}
-
-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/
-}
Copied: python-latex2mathml/repos/community-any/PKGBUILD (from rev 1340324,
python-latex2mathml/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-01 20:50:39 UTC (rev 1340325)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-latex2mathml
+pkgver=3.74.0
+pkgrel=1
+pkgdesc="Pure Python library for LaTeX to MathML conversion"
+url="https://github.com/roniemartinez/latex2mathml"
+license=('MIT')
+arch=('any')
+depends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-poetry-core')
+checkdepends=('python-pytest' 'python-multidict' 'python-xmljson')
+source=("https://github.com/roniemartinez/latex2mathml/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('d233ea2aa6fe90542b9ce695a3ffb3f0fcffc97ed112b370665f7aebba3a710a87307241b24f3111bf6e055d0a827274d32c9649228110c74199969c12f53e15')
+
+prepare() {
+ cd latex2mathml-$pkgver
+ sed -i '/--cov/d' pyproject.toml
+}
+
+build() {
+ cd latex2mathml-$pkgver
+ python -m build -nw
+}
+
+check() {
+ cd latex2mathml-$pkgver
+ pytest
+}
+
+package() {
+ cd latex2mathml-$pkgver
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}