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

Felix Yan felixonmars at archlinux.org
Fri Nov 2 18:15:37 UTC 2018


    Date: Friday, November 2, 2018 @ 18:15:36
  Author: felixonmars
Revision: 401274

upgpkg: python-texttable 1.5.0-1

Modified:
  python-texttable/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++-----------------
 1 file changed, 10 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-02 18:15:23 UTC (rev 401273)
+++ PKGBUILD	2018-11-02 18:15:36 UTC (rev 401274)
@@ -4,9 +4,10 @@
 # Contributor: Jason St. John <jstjohn .. purdue . edu>
 # Contributor: Daniel YC Lin <dlin.tw at gmail>
 
+pkgbase=python-texttable
 pkgname=(python-texttable python2-texttable)
-pkgver=1.4.0
-pkgrel=2
+pkgver=1.5.0
+pkgrel=1
 pkgdesc="Generate a formatted text table using ASCII characters"
 arch=('any')
 url="https://pypi.python.org/pypi/texttable/"
@@ -13,27 +14,19 @@
 license=('LGPL')
 makedepends=('python-cjkwrap' 'python2-cjkwrap')
 checkdepends=('python-pytest' 'python2-pytest')
-source=("https://pypi.io/packages/source/t/texttable/texttable-$pkgver.tar.gz")
-sha512sums=('41d1b429ee32cd717d273152da0263cfff13d79aae7ecc69bda455c1391ea1e6cf74b412e6043bf3d32d62932b4498a2484deb997ef545fdd6195fd5ebd58fc5')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/foutaise/texttable/archive/v$pkgver.tar.gz")
+sha512sums=('f4727947a302c8e1bf09ba08d73f79f083304b42f86f2f181a98f44602961e0b280aedd4e38660630671eac17e6eb92403b89c1ae6ea3cdd3cf861c122b904a3')
 
-prepare() {
-  cp -a texttable-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/texttable-$pkgver
+  cd texttable-$pkgver
   python setup.py build
-
-  cd "$srcdir"/texttable-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/texttable-$pkgver
-  py.test tests.py
-
-  cd "$srcdir"/texttable-$pkgver-py2
-  py.test2 tests.py
+  cd texttable-$pkgver
+  pytest tests.py
+  pytest2 tests.py
 }
 
 package_python-texttable() {
@@ -48,6 +41,6 @@
   depends=('python2')
   optdepends=('python2-cjkwrap: for better CJK support')
 
-  cd texttable-$pkgver-py2
+  cd texttable-$pkgver
   python2 setup.py install --root="$pkgdir" --optimize=1
 }



More information about the arch-commits mailing list