[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Sun Aug 16 08:09:31 UTC 2020
Date: Sunday, August 16, 2020 @ 08:09:30
Author: felixonmars
Revision: 680810
addpkg: python-cymem 2.0.3-1
Added:
python-cymem/
python-cymem/repos/
python-cymem/trunk/
python-cymem/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Added: python-cymem/trunk/PKGBUILD
===================================================================
--- python-cymem/trunk/PKGBUILD (rev 0)
+++ python-cymem/trunk/PKGBUILD 2020-08-16 08:09:30 UTC (rev 680810)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cymem
+pkgver=2.0.3
+pkgrel=1
+pkgdesc="Cython memory pool for RAII-style memory management"
+url="https://github.com/explosion/cymem"
+license=('MIT')
+arch=('x86_64')
+depends=('cython' 'python')
+makedepends=('python-pip' 'python-setuptools' 'python-wheel')
+checkdepends=('python-pytest')
+source=("https://github.com/explosion/cymem/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('e80f1af0be0399c93e9dbddb9c132513ca3e17b14337662097cb36edf606fb7fd0a490d348d44d3f905aa274a9c8f6a5a8008099d0814c0a462775d357bdae26')
+
+build() {
+ cd cymem-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd cymem-$pkgver
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.8" pytest
+}
+
+package() {
+ cd cymem-$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