[arch-commits] Commit in python-pycapnp/repos (2 files)

David Runge dvzrv at gemini.archlinux.org
Wed Jun 8 22:13:12 UTC 2022


    Date: Wednesday, June 8, 2022 @ 22:13:12
  Author: dvzrv
Revision: 1229404

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 1229403, python-pycapnp/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: python-pycapnp/repos/community-staging-x86_64/PKGBUILD (from rev 1229403, python-pycapnp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-06-08 22:13:12 UTC (rev 1229404)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pycapnp
+pkgver=1.1.0
+pkgrel=5
+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/pycapnp/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('1013b49f860a2b65e5850bf9435a23bc5171ce8648c4c671212f206bb2718f97cadf791c1829ec4bacb2cd26dc380a4a61a1f8cabe4ae8b064f73158b16389b2')
+
+build() {
+  cd pycapnp-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+
+  cd pycapnp-$pkgver
+  PYTHONPATH="build/lib.linux-$CARCH-$python_version" pytest
+}
+
+package() {
+  cd pycapnp-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list