diff options
author | Jeremy Gust | 2024-04-21 15:17:03 -0600 |
---|---|---|
committer | Jeremy Gust | 2024-04-21 15:17:03 -0600 |
commit | db7a886adce767dd5abf8280b8c7b793c25566a6 (patch) | |
tree | cb3c16ccb4728cb57a5e01c3d8df54eb79b48a60 | |
parent | dc02e6751179bf44b5d71dc37d02c2926f6c5ab8 (diff) | |
download | aur-db7a886adce767dd5abf8280b8c7b793c25566a6.tar.gz |
Updated to version 2.0.5, using slightly altered PKGBUILD from last v2 mistune package in extra
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 39 insertions, 25 deletions
@@ -1,17 +1,20 @@ pkgbase = python-mistune2 - pkgdesc = A sane Markdown parser with useful plugins and renderers (alpha v2 branch) - pkgver = 2.0.0a6 + pkgdesc = A fast yet powerful Python Markdown parser with renderers and plugins + pkgver = 2.0.5 pkgrel = 1 url = https://github.com/lepture/mistune arch = any - license = BSD + license = BSD-3-Clause + checkdepends = python-pytest + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python - provides = python-mistune + provides = python-mistune=2.0.5 conflicts = python-mistune - source = https://files.pythonhosted.org/packages/source/m/mistune/mistune-2.0.0a6.tar.gz - sha256sums = 5747cbb16fb50cd2ddd25d44d93b2c414a3b75875f6d9d58be8afbae67234ec9 + source = https://github.com/lepture/mistune/archive/v2.0.5/python-mistune2-2.0.5.tar.gz + sha512sums = ca1cb685e55550d8adc421cec1bb5359895e04bc80259eb0bdc5b554669758e92d3f10cdd4bd01a15ca9aeeca62f9c8813a14101db0281b9a93eeecbff496aa0 + b2sums = fbece6ecb32003b40772b5772eb0415d1ae3654a52625578ff92daa4ed8df38758a6e725ddda86b2f7848406942454e09e52dca6583444f03769bd4911a4c5aa pkgname = python-mistune2 - depends = python - @@ -1,27 +1,38 @@ -# Maintainer: kyrenaios <kyrenaios at protonmail dot com> -pkgbase='python-mistune2' +# Maintainer:Jeremy Gust <jeremy AT plasticsoup DOT net> +# Contributor: kyrenaios <kyrenaios at protonmail dot com> +# Contributor: Kyle Keen <keenerd@gmail.com> +# Contributor: David Runge <dvzrv@archlinux.org> +# Contributor: shmilee pkgname=('python-mistune2') -_module='mistune' -pkgver='2.0.0a6' +_pyname='mistune' +pkgver=2.0.5 pkgrel=1 -pkgdesc="A sane Markdown parser with useful plugins and renderers (alpha v2 branch)" +pkgdesc="A fast yet powerful Python Markdown parser with renderers and plugins" +arch=('any') url="https://github.com/lepture/mistune" -conflicts=('python-mistune') -provides=('python-mistune') +license=('BSD-3-Clause') depends=('python') -makedepends=('python-setuptools') -license=('BSD') -arch=('any') -source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz") -sha256sums=('5747cbb16fb50cd2ddd25d44d93b2c414a3b75875f6d9d58be8afbae67234ec9') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') +checkdepends=('python-pytest') +conflicts=('python-mistune') +provides=("python-mistune=$pkgver") +source=("https://github.com/lepture/mistune/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('ca1cb685e55550d8adc421cec1bb5359895e04bc80259eb0bdc5b554669758e92d3f10cdd4bd01a15ca9aeeca62f9c8813a14101db0281b9a93eeecbff496aa0') +b2sums=('fbece6ecb32003b40772b5772eb0415d1ae3654a52625578ff92daa4ed8df38758a6e725ddda86b2f7848406942454e09e52dca6583444f03769bd4911a4c5aa') build() { - cd "${srcdir}/${_module}-${pkgver}" - python setup.py build + cd $_pyname-$pkgver + python -m build --wheel --skip-dependency-check --no-isolation +} + +check() { + cd $_pyname-$pkgver + pytest -vv } package() { - depends+=() - cd "${srcdir}/${_module}-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + cd $_pyname-$pkgver + python -m installer --destdir="${pkgdir}" dist/*.whl + install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/$pkgname/" + install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname/" } |