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

Felix Yan felixonmars at archlinux.org
Thu Nov 12 18:42:01 UTC 2020


    Date: Thursday, November 12, 2020 @ 18:42:01
  Author: felixonmars
Revision: 753156

archrelease: copy trunk to community-staging-x86_64

Added:
  python-plyvel/repos/community-staging-x86_64/
  python-plyvel/repos/community-staging-x86_64/PKGBUILD
    (from rev 753155, python-plyvel/trunk/PKGBUILD)

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

Copied: python-plyvel/repos/community-staging-x86_64/PKGBUILD (from rev 753155, python-plyvel/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 18:42:01 UTC (rev 753156)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+pkgname=python-plyvel
+pkgver=1.2.0
+pkgrel=3
+pkgdesc="A fast and feature-rich Python interface to LevelDB"
+arch=('x86_64')
+license=('BSD')
+url="https://github.com/wbolster/plyvel"
+depends=('leveldb' 'python')
+makedepends=('cython' 'python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("https://pypi.io/packages/source/p/plyvel/plyvel-$pkgver.tar.gz")
+sha512sums=('00b3424e248d1ed17f6443c9862c9f35c94ad76707df5adfe625d7a387620252ff71b3e1f7e903dda1c5cfcd53cb23883c1049e31df541dfe566b8e849c0a96d')
+
+prepare() {
+  # Shipped egg-info has wrong permission etc
+  cd plyvel-$pkgver
+  make clean
+}
+
+build() {
+  cd plyvel-$pkgver
+  make cython
+  python setup.py build
+}
+
+check() {
+  cd plyvel-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd plyvel-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+}



More information about the arch-commits mailing list