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

Antonio Rojas arojas at archlinux.org
Sat Nov 9 10:44:01 UTC 2019


    Date: Saturday, November 9, 2019 @ 10:44:01
  Author: arojas
Revision: 524802

Drop python2

Modified:
  python-tblib/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++------------------------
 1 file changed, 7 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-09 10:39:03 UTC (rev 524801)
+++ PKGBUILD	2019-11-09 10:44:01 UTC (rev 524802)
@@ -1,7 +1,6 @@
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 
-pkgbase=python-tblib
-pkgname=('python-tblib' 'python2-tblib')
+pkgname=python-tblib
 _pyname=tblib
 pkgver=1.5.0
 pkgrel=1
@@ -9,26 +8,18 @@
 url='https://github.com/ionelmc/python-tblib'
 arch=('any')
 license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
-source=(https://github.com/ionelmc/python-tblib/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz)
+depends=('python-six')
+makedepends=('python-setuptools' 'python-six')
+source=(https://github.com/ionelmc/python-tblib/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
 sha256sums=('583527ec61e2abb949b702d46dd7059354975c18a2ecc45130e4938905df258c')
 sha512sums=('33b6160401d3593e3b836cd9468ddf7246c84f77eb01118788ad4dc3f3af32c1796d09fa9347c956da1fcc4c48245b794247a28c900072f35564eb8abfdc3275')
 
-prepare() {
-  cp -ra ${pkgbase}-${pkgver}{,-py2}
-}
-
 check() {
-  (cd ${pkgbase}-${pkgver}
-    python setup.py test
-  )
-  (cd ${pkgbase}-${pkgver}-py2
-    python2 setup.py test
-  )
+  cd ${pkgbase}-${pkgver}
+  python setup.py test
 }
 
-package_python-tblib() {
-  depends=('python-six')
+package() {
   cd ${pkgbase}-${pkgver}
   python setup.py install -O1 --root="${pkgdir}" --prefix=/usr
   install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
@@ -35,12 +26,4 @@
   install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }
 
-package_python2-tblib() {
-  depends=('python2-six')
-  cd ${pkgbase}-${pkgver}-py2
-  python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr
-  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
-
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list