Date: Wednesday, January 25, 2023 @ 19:14:42
Author: morganamilo
Revision: 1388272
archrelease: copy trunk to community-staging-x86_64
Added:
python-pycapnp/repos/community-staging-x86_64/
python-pycapnp/repos/community-staging-x86_64/PKGBUILD
(from rev 1388271, python-pycapnp/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-pycapnp/repos/community-staging-x86_64/PKGBUILD (from rev
1388271, python-pycapnp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-01-25 19:14:42 UTC (rev 1388272)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <[email protected]>
+
+_name=pycapnp
+pkgname=python-pycapnp
+pkgver=1.2.2
+pkgrel=2
+pkgdesc="A cython wrapping of the C++ Cap'n Proto library"
+url="https://github.com/capnproto/pycapnp"
+license=(BSD)
+arch=(x86_64)
+depends=(capnproto python)
+makedepends=(cython python-build python-installer python-pkgconfig
python-setuptools python-wheel)
+checkdepends=(python-pytest)
+source=(https://github.com/capnproto/$_name/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('3c0bdd90ec2f7a2e631f05d1e7ddfa06524d003d0f3f7e68eda8affc423ecf5921ab5608e27fbee94603556e9a3a4bd3e52f5452d0501b29def8ac9f789630f0')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd pycapnp-$pkgver
+ PYTHONPATH="build/lib.linux-$CARCH-cpython-310" pytest
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -vDm 644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
+}