Date: Monday, May 16, 2022 @ 16:10:01 Author: kpcyrd Revision: 1207552
addpkg: python-json-stream 1.3.0-1 Added: python-json-stream/ python-json-stream/repos/ python-json-stream/trunk/ python-json-stream/trunk/PKGBUILD ----------+ PKGBUILD | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) Added: python-json-stream/trunk/PKGBUILD =================================================================== --- python-json-stream/trunk/PKGBUILD (rev 0) +++ python-json-stream/trunk/PKGBUILD 2022-05-16 16:10:01 UTC (rev 1207552) @@ -0,0 +1,27 @@ +# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org> + +_pyname=json-stream +pkgname=python-${_pyname} +pkgver=1.3.0 +pkgrel=1 +pkgdesc='Simple streaming JSON parser' +arch=(any) +url="https://github.com/daggaz/json-stream" +license=('MIT') +depends=('python') +makedepends=(python-build python-installer python-setuptools python-wheel) +source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") +b2sums=('f5318e62c9311352ce2997cd5db039570a2d6f15960497a28a8e0f570548abf30ed1248100831379215c621c52639c0c3a3e768f13fa2a8def06f65b400588bf') + +build() { + cd "${_pyname}-${pkgver}" + python -m build --wheel --no-isolation +} + +package() { + cd "${_pyname}-${pkgver}" + python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +# vim: ts=2 sw=2 et: