blob: 0a2ced10c36844f993966e4311c1258b25edd69d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Henry-ZHR <henry-zhr@qq.com>
pkgname=python-mdtex2html
pkgver=1.3.1
pkgrel=1
pkgdesc="python3-library to convert Markdown with included LaTeX-Formulas to HTML with MathML"
arch=('any')
url="https://github.com/polarwinkel/mdtex2html"
license=('LGPL-2.1-only')
depends=('python'
'python-markdown'
'python-latex2mathml')
makedepends=('git'
'python-build'
'python-setuptools'
'python-wheel'
'python-installer')
_tag='a4f2345cc0a53a4d317e46f917ed0d991ee8c9d5' # git rev-parse "v${pkgver}"
source=("${pkgname}::git+${url}.git#tag=${_tag}")
sha512sums=('SKIP')
prepare() {
cd "${pkgname}"
git clean -dfx
}
build() {
cd "${pkgname}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|