From abb7981df8d6ac52ac4afb0740c5225c1d4623aa Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 14 Jul 2022 16:09:40 +0200 Subject: [PATCH] py3-mwparserfromhell: new aport --- sr.ht/py3-mwparserfromhell/APKBUILD | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 sr.ht/py3-mwparserfromhell/APKBUILD diff --git a/sr.ht/py3-mwparserfromhell/APKBUILD b/sr.ht/py3-mwparserfromhell/APKBUILD new file mode 100644 index 0000000..e3186fb --- /dev/null +++ b/sr.ht/py3-mwparserfromhell/APKBUILD @@ -0,0 +1,32 @@ +# Maintainer: Drew DeVault +pkgname=py3-mwparserfromhell +_pyname=mwparserfromhell +pkgver=0.6.4 +pkgrel=0 +pkgdesc="A parser for MediaWiki wikicode" +url="https://pypi.org/project/mwparserfromhell/" +arch="all" +license="MIT" +depends="python3" +makedepends="py3-setuptools" +_pypiprefix="${_pyname%${_pyname#?}}" +source=" + https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz +" +builddir="$srcdir/$_pyname-$pkgver" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py check +} + +package() { + python3 setup.py install --root="$pkgdir" --optimize=1 +} + +sha512sums=" +6ea9996b22d0069a39cd4381ebec5dfb6831d0c3948ac31239ec760e8c53837ddff6c9888cb10219550854d9b4606ac9c2b8cc0a0a239fd0db5de7dd2311f1d1 mwparserfromhell-0.6.4.tar.gz +" -- 2.45.2