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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 17:35:59 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:35:59
  Author: foutrelis
Revision: 752703

archrelease: copy trunk to community-staging-any

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

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

Copied: python-couchdb/repos/community-staging-any/PKGBUILD (from rev 752701, python-couchdb/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 17:35:59 UTC (rev 752703)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Aaron DeVore <aaron.devore at gmail.com>
+# Contributor: Byron Clark <byron at theclarkfamily.name>
+# Contributor: Guan 'kuno' Qing <neokuno AT gmail DOT com>
+
+pkgname=python-couchdb
+pkgver=1.2
+_commit=44ec56ced41d507fce4237d01ea467f7505f58e1
+pkgrel=4
+pkgdesc="Python library for working with CouchDB"
+url="https://github.com/djc/couchdb-python/"
+license=('BSD')
+arch=('any')
+depends=('python-setuptools')
+checkdepends=('pifpaf' 'couchdb')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/djc/couchdb-python/archive/$pkgver.tar.gz")
+sha512sums=('eaa672a820b6dfd8ffcc5b8aeba43e95f90249746127c2d30907b5cea847a3e4226906dab187040a75bd4c0952ff6eefd1ec8593607eac208fc44ecf27ea77d5')
+
+build() {
+  cd couchdb-python-$pkgver
+  python setup.py build
+}
+
+check() {
+  # New couchdb doesn't provide /usr/bin/couchdb
+  export PATH="$PATH:/usr/lib/couchdb/bin"
+
+  cd couchdb-python-$pkgver
+  pifpaf run couchdb python setup.py test || echo "python 3 tests failed"
+}
+
+package() {
+  cd couchdb-python-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -D -m644 "COPYING" \
+    "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}



More information about the arch-commits mailing list