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

Felix Yan felixonmars at archlinux.org
Sun Feb 16 18:42:02 UTC 2020


    Date: Sunday, February 16, 2020 @ 18:42:01
  Author: felixonmars
Revision: 572759

upgpkg: python-plyvel 1.2.0-2: remove python2 sibling

Modified:
  python-plyvel/trunk/PKGBUILD

----------+
 PKGBUILD |   39 ++++++++++-----------------------------
 1 file changed, 10 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-16 18:37:26 UTC (rev 572758)
+++ PKGBUILD	2020-02-16 18:42:01 UTC (rev 572759)
@@ -1,57 +1,38 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Andy Weidenbaum <archbaum at gmail.com>
 
-pkgname=(python-plyvel python2-plyvel)
+pkgname=python-plyvel
 pkgver=1.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A fast and feature-rich Python interface to LevelDB"
 arch=('x86_64')
 license=('BSD')
 url="https://github.com/wbolster/plyvel"
-makedepends=('cython' 'cython2' 'python-setuptools' 'python2-setuptools' 'leveldb')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+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)
-
-  cp -a plyvel-$pkgver{,-py2}
-
-  sed -i 's/cython/cython2/' plyvel-$pkgver-py2/Makefile
+  cd plyvel-$pkgver
+  make clean
 }
 
 build() {
-  cd "$srcdir"/plyvel-$pkgver
+  cd plyvel-$pkgver
   make cython
   python setup.py build
-
-  cd "$srcdir"/plyvel-$pkgver-py2
-  make cython2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/plyvel-$pkgver
+  cd plyvel-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/plyvel-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-plyvel() {
-  depends=('leveldb' 'python')
-
+package() {
   cd plyvel-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
 }
-
-package_python2-plyvel() {
-  depends=('leveldb' 'python2')
-
-  cd plyvel-$pkgver-py2
-  python2 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