1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
3 pkgname=python-trio-asyncio
6 pkgdesc='A re-implementation of the asyncio mainloop on top of Trio'
8 url=https://github.com/python-trio/trio-asyncio
15 python-async_generator
24 _tag=970d81c498f857d052738a2c4db2c899910dc038
25 source=(git+https://github.com/python-trio/trio-asyncio.git#tag=${_tag})
30 git describe --tags | sed 's/^v//'
40 python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
41 local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
42 rm -rf "${pkgdir}"${site_packages}/tests
43 install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-trio-asyncio/
44 install -Dm 644 LICENSE.MIT -t "${pkgdir}"/usr/share/licenses/python-trio-asyncio/