# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-multidict _pkgname=multidict pkgver=4.7.4 pkgrel=0 pkgdesc="A multidict implementation" url="https://github.com/aio-libs/multidict/" arch="all" license="Apache-2.0" depends="python3" makedepends="python3-dev py3-setuptools cython" subpackages="$pkgname-dev" source="$_pkgname-$pkgver.tar.gz::https://github.com/aio-libs/multidict/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" options="!strip" check() { python3 setup.py check } build() { (cd multidict && find -name '*.pyx' -exec cython {} \;) python3 setup.py build } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" rm -f "$pkgdir"/usr/lib/python3*/site-packages/*.c rm -f "$pkgdir"/usr/lib/python3*/site-packages/*.h } sha512sums="0d4a5e8522f5abc5dd44d74608dd9b3eca141963ffe6e51155352ef4b963e4b3a6d9ab43a874f04583db490d61961b10ff06998b094458907bfbbdb65ffb5359 multidict-4.7.4.tar.gz"