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

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 01:32:24 UTC 2021


    Date: Friday, December 3, 2021 @ 01:32:23
  Author: felixonmars
Revision: 1064679

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

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

Copied: python-pycapnp/repos/community-staging-x86_64/PKGBUILD (from rev 1064678, python-pycapnp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-03 01:32:23 UTC (rev 1064679)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pycapnp
+pkgver=1.1.0
+pkgrel=4
+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-pkgconfig' 'python-setuptools')
+checkdepends=('python-pytest')
+source=("https://github.com/capnproto/pycapnp/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('1013b49f860a2b65e5850bf9435a23bc5171ce8648c4c671212f206bb2718f97cadf791c1829ec4bacb2cd26dc380a4a61a1f8cabe4ae8b064f73158b16389b2')
+
+build() {
+  cd pycapnp-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pycapnp-$pkgver
+  PYTHONPATH="build/lib.linux-$CARCH-3.10" pytest
+}
+
+package() {
+  cd pycapnp-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list