archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-json-stream / trunk / PKGBUILD
blob5392c5206488e721efa561eb1b29e5e5343571c5
1 # Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
3 _pyname=json-stream
4 pkgname=python-${_pyname}
5 pkgver=2.3.0
6 pkgrel=1
7 pkgdesc='Simple streaming JSON parser'
8 arch=(any)
9 url="https://github.com/daggaz/json-stream"
10 license=('MIT')
11 depends=('python')
12 makedepends=(python-build python-installer python-setuptools python-wheel)
13 source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
14 b2sums=('d18e3356bbf900e71250a55377ad76bbfd552ea6eea90d2b1d89e84733b0c507cbc507747bed123682ee9a3fc3f167b2fe27be3925c6809c60a02bc236a0db87')
16 build() {
17   cd "${_pyname}-${pkgver}"
18   python -m build --wheel --no-isolation
21 package() {
22   cd "${_pyname}-${pkgver}"
23   python -m installer --destdir="${pkgdir}" dist/*.whl
24   install -Dm644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
27 # vim: ts=2 sw=2 et: