1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
5 _commit=33c453eff788295804c094601b657ec4fdadc6f8
7 pkgdesc="A cython wrapping of the C++ Cap'n Proto library"
8 url="https://github.com/capnproto/pycapnp"
11 depends=(gcc-libs glibc python)
12 makedepends=(git capnproto cython python-build python-installer python-pkgconfig python-setuptools python-wheel)
13 checkdepends=(python-pytest)
14 optdepends=('python-jinja: for capnpc-cython')
15 source=(git+https://github.com/capnproto/pycapnp.git#commit=$_commit)
20 python -m build --wheel --no-isolation
25 PYTHONPATH="build/lib.linux-$CARCH-cpython-311" pytest
30 capnproto libkj.so libkj-async.so libcapnpc.so libcapnp.so libcapnp-rpc.so
33 python -m installer --destdir="$pkgdir" dist/*.whl
34 install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/