upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-trio / trunk / PKGBUILD
blobf6df034c751e2d7cbaa97c3944389e4eb3cd947b
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
3 pkgname=python-trio
4 pkgver=0.22.0
5 pkgrel=4
6 pkgdesc='A friendly Python library for async concurrency and I/O'
7 arch=(any)
8 url=https://github.com/python-trio/trio
9 license=(MIT)
10 depends=(
11   python
12   python-async_generator
13   python-attrs
14   python-exceptiongroup
15   python-idna
16   python-outcome
17   python-sniffio
18   python-sortedcontainers
20 makedepends=(
21   git
22   python-setuptools
24 provides=(python-multio-provider)
25 _tag=87ea87018da2085180138bd952abcac67961be62
26 source=(git+https://github.com/python-trio/trio.git#tag=${_tag})
27 b2sums=(SKIP)
29 pkgver() {
30   cd trio
31   _version=$(git describe --tags | sed 's/^v//')
32   echo "__version__ = '${_version}'" > trio/_version.py
33   echo ${_version}
36 build() {
37   cd trio
38   python setup.py build
41 package() {
42   cd trio
43   python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
44   install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-trio/
47 # vim: ts=2 sw=2 et: