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

Felix Yan felixonmars at archlinux.org
Tue Apr 2 12:48:46 UTC 2019


    Date: Tuesday, April 2, 2019 @ 12:48:34
  Author: felixonmars
Revision: 447674

upgpkg: python-texttable 1.6.1-2

remove python2 sibling

Modified:
  python-texttable/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++++--------------------
 1 file changed, 8 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-02 12:47:53 UTC (rev 447673)
+++ PKGBUILD	2019-04-02 12:48:34 UTC (rev 447674)
@@ -4,43 +4,31 @@
 # Contributor: Jason St. John <jstjohn .. purdue . edu>
 # Contributor: Daniel YC Lin <dlin.tw at gmail>
 
-pkgbase=python-texttable
-pkgname=(python-texttable python2-texttable)
+pkgname=python-texttable
 pkgver=1.6.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Generate a formatted text table using ASCII characters"
 arch=('any')
 url="https://pypi.python.org/pypi/texttable/"
 license=('LGPL')
-makedepends=('python-cjkwrap' 'python2-cjkwrap' 'python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/foutaise/texttable/archive/v$pkgver.tar.gz")
+depends=('python')
+optdepends=('python-cjkwrap: for better CJK support')
+makedepends=('python-cjkwrap' 'python-setuptools')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/foutaise/texttable/archive/v$pkgver.tar.gz")
 sha512sums=('72d4bb5c4f03b1f9dbfc4b1e375ad754e92610f71e65c7e9a0b7bdc88b3753254b143aa607570d49cfca56a3cf889a819e12ea184fdf34594f1f5d118de3c12c')
 
 build() {
   cd texttable-$pkgver
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
   cd texttable-$pkgver
   pytest tests.py
-  pytest2 tests.py
 }
 
-package_python-texttable() {
-  depends=('python')
-  optdepends=('python-cjkwrap: for better CJK support')
-
+package() {
   cd texttable-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-texttable() {
-  depends=('python2')
-  optdepends=('python2-cjkwrap: for better CJK support')
-
-  cd texttable-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}



More information about the arch-commits mailing list