[arch-commits] Commit in python-couchdb/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Mar 1 11:11:27 UTC 2019


    Date: Friday, March 1, 2019 @ 11:11:26
  Author: felixonmars
Revision: 437247

upgpkg: python-couchdb 1.2-2

remove python2 sibling

Modified:
  python-couchdb/trunk/PKGBUILD

----------+
 PKGBUILD |   54 ++++++++++--------------------------------------------
 1 file changed, 10 insertions(+), 44 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-01 11:11:13 UTC (rev 437246)
+++ PKGBUILD	2019-03-01 11:11:26 UTC (rev 437247)
@@ -3,35 +3,22 @@
 # Contributor: Byron Clark <byron at theclarkfamily.name>
 # Contributor: Guan 'kuno' Qing <neokuno AT gmail DOT com>
 
-pkgbase=python-couchdb
-pkgname=(python-couchdb python2-couchdb)
+pkgname=python-couchdb
 pkgver=1.2
 _commit=44ec56ced41d507fce4237d01ea467f7505f58e1
-pkgrel=1
+pkgrel=2
 pkgdesc="Python library for working with CouchDB"
 url="https://github.com/djc/couchdb-python/"
 license=('BSD')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
-checkdepends=('python-pifpaf' 'couchdb')
-source=("git+https://github.com/djc/couchdb-python.git#commit=$_commit")
-md5sums=('SKIP')
+depends=('python-setuptools')
+checkdepends=('pifpaf' 'couchdb')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/djc/couchdb-python/archive/$pkgver.tar.gz")
+sha512sums=('eaa672a820b6dfd8ffcc5b8aeba43e95f90249746127c2d30907b5cea847a3e4226906dab187040a75bd4c0952ff6eefd1ec8593607eac208fc44ecf27ea77d5')
 
-prepare() {
-  cp -a couchdb-python{,-py2}
-
-  cd "$srcdir"/couchdb-python-py2
-  sed -i 's/python /python2 /' Makefile
-  find . -name "*.py" -exec \
-    sed -i '1s|env python$|env python2|' {} \;
-}
-
 build() {
-  cd "$srcdir"/couchdb-python
+  cd couchdb-python-$pkgver
   python setup.py build
-
-  cd "$srcdir"/couchdb-python-py2
-  python2 setup.py build
 }
 
 check() {
@@ -38,35 +25,14 @@
   # New couchdb doesn't provide /usr/bin/couchdb
   export PATH="$PATH:/usr/lib/couchdb/bin"
 
-  cd "$srcdir"/couchdb-python
+  cd couchdb-python-$pkgver
   pifpaf run couchdb python setup.py test || warning "python 3 tests failed"
-
-  cd "$srcdir"/couchdb-python-py2
-  pifpaf run couchdb python2 setup.py test
 }
 
-package_python-couchdb() {
-  depends=('python-setuptools')
-
-  cd couchdb-python
+package() {
+  cd couchdb-python-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 
   install -D -m644 "COPYING" \
     "$pkgdir/usr/share/licenses/$pkgname/COPYING"
 }
-
-package_python2-couchdb() {
-  depends=('python2-setuptools')
-
-  cd couchdb-python-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  install -D -m644 "COPYING" \
-    "$pkgdir/usr/share/licenses/$pkgname/COPYING"
-
-  for name in couchdb-dump couchdb-load couchdb-replicate couchpy couchdb-load-design-doc; do
-    mv "$pkgdir/usr/bin/$name"{,2}
-  done
-}
-
-# vim:ts=2:sw=2:et


More information about the arch-commits mailing list