archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-trio-asyncio / trunk / PKGBUILD
blobcbbb332631de6a6f4faae7a0a163608ea863cb66
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
3 pkgname=python-trio-asyncio
4 pkgver=0.12.0
5 pkgrel=9
6 pkgdesc='A re-implementation of the asyncio mainloop on top of Trio'
7 arch=(any)
8 url=https://github.com/python-trio/trio-asyncio
9 license=(
10   APACHE
11   MIT
13 depends=(
14   python
15   python-async_generator
16   python-outcome
17   python-trio
19 makedepends=(
20   git
21   python-setuptools
22   python-pytest-runner
24 _tag=970d81c498f857d052738a2c4db2c899910dc038
25 source=(git+https://github.com/python-trio/trio-asyncio.git#tag=${_tag})
26 sha256sums=(SKIP)
28 pkgver() {
29   cd trio-asyncio
30   git describe --tags | sed 's/^v//'
33 build() {
34   cd trio-asyncio
35   python setup.py build
38 package() {
39   cd trio-asyncio
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/
47 # vim: ts=2 sw=2 et: