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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 03:58:37 UTC 2020


    Date: Tuesday, November 10, 2020 @ 03:58:37
  Author: felixonmars
Revision: 748301

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: python-lmdb/repos/community-staging-x86_64/PKGBUILD (from rev 748297, python-lmdb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-10 03:58:37 UTC (rev 748301)
@@ -0,0 +1,36 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=py-lmdb
+pkgname=python-lmdb
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="Universal Python binding for the LMDB Lightning Database"
+arch=(x86_64)
+url="https://github.com/jnwatson/py-lmdb/"
+license=('custom: OpenLDAP')
+depends=(python python-cffi lmdb)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest)
+source=(${url}/archive/${_pkg}_${pkgver}.tar.gz)
+sha256sums=('e01bc4d62679b6e8c8962f1110f910cdfbdb2d750b145f02fae8b8a9d787f2f9')
+
+build() {
+  cd ${_pkg}-${_pkg}_${pkgver}
+  LMDB_FORCE_SYSTEM=1 python setup.py build
+}
+
+check() {
+  cd ${_pkg}-${_pkg}_${pkgver}
+  local _pyver
+  _pyver="$(python -c 'import sys; print("%s.%s" %sys.version_info[0:2])')"
+  export LMDB_FORCE_SYSTEM=1
+  export PYTHONPATH="$(pwd)/build/lib.linux-${CARCH}-${_pyver}"
+  pytest
+}
+
+package() {
+  cd ${_pkg}-${_pkg}_${pkgver}
+  LMDB_FORCE_SYSTEM=1 python setup.py install --root="$pkgdir" --skip-build --optimize=1
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list