[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Tue May 26 19:42:14 UTC 2020
Date: Tuesday, May 26, 2020 @ 19:42:14
Author: felixonmars
Revision: 635246
addpkg: python-cppy 1.1.0-1
Added:
python-cppy/
python-cppy/repos/
python-cppy/trunk/
python-cppy/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Added: python-cppy/trunk/PKGBUILD
===================================================================
--- python-cppy/trunk/PKGBUILD (rev 0)
+++ python-cppy/trunk/PKGBUILD 2020-05-26 19:42:14 UTC (rev 635246)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cppy
+pkgver=1.1.0
+pkgrel=1
+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