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

Nicola Squartini tensor5 at archlinux.org
Mon Apr 27 09:46:23 UTC 2020


    Date: Monday, April 27, 2020 @ 09:46:23
  Author: tensor5
Revision: 621814

upgpkg: python-pyblake2 1.1.2-4

Drop python2 package.

Modified:
  python-pyblake2/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++-----------------------
 1 file changed, 6 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-27 09:39:52 UTC (rev 621813)
+++ PKGBUILD	2020-04-27 09:46:23 UTC (rev 621814)
@@ -1,42 +1,25 @@
 # Maintainer: Nicola Squartini <tensor5 at gmail.com>
 
-pkgname=('python-pyblake2' 'python2-pyblake2')
+pkgname=python-pyblake2
 pkgver=1.1.2
-pkgrel=3
+pkgrel=4
 pkgdesc='BLAKE2 hash function for Python'
 arch=('x86_64')
 url='https://pythonhosted.org/pyblake2'
 license=('custom')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("https://files.pythonhosted.org/packages/a6/ea/559658f48713567276cabe1344a9ef918adcb34a9da417dbf0a2f7477d8e/pyblake2-${pkgver}.tar.gz")
+depends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/p/pyblake2/pyblake2-${pkgver}.tar.gz")
 sha256sums=('5ccc7eb02edb82fafb8adbb90746af71460fbc29aa0f822526fc976dff83e93f')
 
-prepare() {
-  cp -a pyblake2-${pkgver} python2-pyblake2-${pkgver}
-}
-
 build() {
   cd pyblake2-${pkgver}
+
   python setup.py build
-
-  cd ../python2-pyblake2-${pkgver}
-  python2 setup.py build
 }
 
-package_python-pyblake2() {
-  depends=('python')
-
+package() {
   cd pyblake2-${pkgver}
 
   python setup.py install --root="${pkgdir}" --skip-build --optimize=1
   install -Dm644 -t "${pkgdir}/usr/share/licenses/python-pyblake2" COPYING
 }
-
-package_python2-pyblake2() {
-  depends=('python2')
-
-  cd python2-pyblake2-${pkgver}
-
-  python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1
-  install -Dm644 -t "${pkgdir}/usr/share/licenses/python2-pyblake2" COPYING
-}



More information about the arch-commits mailing list