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

Filipe Laíns ffy00 at archlinux.org
Fri Mar 13 15:35:28 UTC 2020


    Date: Friday, March 13, 2020 @ 15:35:28
  Author: ffy00
Revision: 596094

drop python2

Modified:
  python-pyqtgraph/trunk/PKGBUILD

----------+
 PKGBUILD |   34 +++++++++-------------------------
 1 file changed, 9 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-13 15:34:54 UTC (rev 596093)
+++ PKGBUILD	2020-03-13 15:35:28 UTC (rev 596094)
@@ -3,8 +3,7 @@
 # Contributor: Jakub Klinkovský <kuba.klinkovsky at gmail.com>
 
 _pkgname=pyqtgraph
-pkgbase=python-$_pkgname
-pkgname=(python-$_pkgname python2-$_pkgname)
+pkgname=python-$_pkgname
 pkgver=0.10.0
 pkgrel=8
 pkgdesc='Scientific Graphics and GUI Library for Python'
@@ -11,39 +10,24 @@
 arch=('any')
 url='http://www.pyqtgraph.org'
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
+makedepends=('python-setuptools')
+depends=('python' 'python-pyqt5' 'python-numpy')
+optdepends=('python-opengl: 3d graphics'
+            'python-pyside2: alternative backend')
 source=("$_pkgname-$pkgver.tar.gz::$url/downloads/$pkgver/pyqtgraph-$pkgver.tar.gz")
 sha512sums=('4c0a6315c08d65499a9042f418029b8cb1dabb567829c765c3a456dc1df4a8ba1049ccb6980bddb8ef60df504bdc015b87b13064d116cee9e277b15844b3bd7a')
 
-prepare() {
-  cp -a $_pkgname-$pkgver{,-py2}
-}
+build() {
+  cd $_pkgname-$pkgver
 
-build() {
-  echo "Building python-$_pkgname $pkgver"
-  cd "$srcdir"/$_pkgname-$pkgver
   python setup.py build
-
-  echo "Building python2-$_pkgname $pkgver"
-  cd "$srcdir"/$_pkgname-$pkgver-py2
-  python2 setup.py build
 }
 
-package_python-pyqtgraph() {
-  depends=('python' 'python-pyqt5' 'python-numpy')
-  optdepends=('python-opengl: 3d graphics'
-              'python-pyside2: alternative backend')
+package() {
   cd $_pkgname-$pkgver
+
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 
   install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
-package_python2-pyqtgraph() {
-  depends=('python2' 'python2-pyqt5' 'python2-numpy')
-  optdepends=('python2-opengl: 3d graphics')
-  cd $_pkgname-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list