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

Jelle van der Waa jelle at gemini.archlinux.org
Mon Nov 29 16:24:16 UTC 2021


    Date: Monday, November 29, 2021 @ 16:24:16
  Author: jelle
Revision: 1057583

upgpkg: python-progress 1.6-2

Modified:
  python-progress/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++------------------
 1 file changed, 6 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-29 16:19:40 UTC (rev 1057582)
+++ PKGBUILD	2021-11-29 16:24:16 UTC (rev 1057583)
@@ -1,16 +1,16 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
 # Contributor: Guillaume Brogi <gui-gui at netcourrier dot com>
 
 _pkgname=progress
-pkgbase=python-progress
-pkgname=('python-progress' 'python2-progress')
+pkgname=python-progress
 pkgver=1.6
-pkgrel=1
+pkgrel=2
 pkgdesc="Easy to use progress bars for Python"
 arch=('any')
 url="https://github.com/verigak/${_pkgname}"
 license=('ISC')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
 sha256sums=('e4a0d9e4370cd09f29ecdf72bf84c7177caef8374a90a627c83a84e619eb0f3d')
 
@@ -18,7 +18,6 @@
     cd "${srcdir}"/${_pkgname}-${pkgver}
 
     python setup.py build
-    python2 setup.py build
 }
 
 check() {
@@ -25,21 +24,10 @@
     cd "${srcdir}"/${_pkgname}-${pkgver}
 
     python test_progress.py
-    python2 test_progress.py
 }
 
-package_python-progress() {
-    depends=('python')
-
+package() {
     cd "${srcdir}"/${_pkgname}-${pkgver}
     python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
 	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 }
-
-package_python2-progress() {
-    depends=('python2')
-
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}



More information about the arch-commits mailing list