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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:24:11 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:24:11
  Author: felixonmars
Revision: 1058206

archrelease: copy trunk to community-staging-any

Added:
  python-cppy/repos/community-staging-any/
  python-cppy/repos/community-staging-any/PKGBUILD
    (from rev 1058203, python-cppy/trunk/PKGBUILD)

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

Copied: python-cppy/repos/community-staging-any/PKGBUILD (from rev 1058203, python-cppy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:24:11 UTC (rev 1058206)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cppy
+pkgver=1.1.0
+pkgrel=4
+pkgdesc="A collection of C++ headers which make it easier to write Python C extension modules"
+url="https://github.com/nucleic/cppy"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nucleic/cppy/archive/$pkgver.tar.gz")
+sha512sums=('b745b6fe1d02f87b8c257a73792ed583ca6e709943af567105f6ccfcf9c5eb99e9dcaaad42b0b4d6f90de2b4398bf8e5bb042798cd98e376c90e9b54ea24a212')
+
+build() {
+  cd cppy-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd cppy-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd cppy-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list