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

Jelle van der Waa jelle at archlinux.org
Thu Feb 13 17:28:33 UTC 2020


    Date: Thursday, February 13, 2020 @ 17:28:33
  Author: jelle
Revision: 570657

upgpkg: python-prettytable 0.7.2-12

Remove python2 module

Modified:
  python-prettytable/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++------------------
 1 file changed, 7 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-13 17:26:54 UTC (rev 570656)
+++ PKGBUILD	2020-02-13 17:28:33 UTC (rev 570657)
@@ -3,14 +3,15 @@
 # Contributor: Emmanuel Gil Peyrot <linkmauve at linkmauve.fr>
 
 _pkgname=prettytable
-pkgname=(python-prettytable python2-prettytable)
+pkgname=python-prettytable
 pkgver=0.7.2
-pkgrel=11
+pkgrel=12
 pkgdesc="A simple Python library for easily displaying tabular data"
 url="https://pypi.python.org/pypi/PrettyTable"
 arch=('any')
 license=('BSD')
-makedepends=('python2-setuptools' python-setuptools)
+depends=(python)
+makedepends=(python-setuptools)
 source=("https://files.pythonhosted.org/packages/source/P/PrettyTable/prettytable-${pkgver}.tar.gz"
         '0001-Fix-column-spacing-with-xterm-reset-escape-sequence.patch')
 md5sums=('a6b80afeef286ce66733d54a0296b13b'
@@ -20,27 +21,15 @@
   pushd $_pkgname-$pkgver
   patch -p1 -i "$srcdir"/0001-Fix-column-spacing-with-xterm-reset-escape-sequence.patch
   popd
-
-  cp -a "$srcdir"/$_pkgname-$pkgver "$srcdir"/$_pkgname-$pkgver-2
-  find $_pkgname-$pkgver-2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
 }
 
 build() {
-  cd "$srcdir/$_pkgname-$pkgver"
+  cd "$_pkgname-$pkgver"
   python setup.py build
-  cd "$srcdir"/$_pkgname-$pkgver-2
-  python2 setup.py build
 }
 
-package_python-prettytable() {
-  cd "$srcdir/$_pkgname-$pkgver"
+package() {
+  cd "$_pkgname-$pkgver"
   chmod 644 -R prettytable.egg-info
-  depends=(python)
   python setup.py install --root="$pkgdir/"
 }
-package_python2-prettytable() {
-  cd "$srcdir/$_pkgname-$pkgver-2"
-  chmod 644 -R prettytable.egg-info
-  depends=(python2)
-  python2 setup.py install --root="$pkgdir/"
-}



More information about the arch-commits mailing list