[arch-commits] Commit in python-texttable/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Oct 14 17:00:48 UTC 2017


    Date: Saturday, October 14, 2017 @ 17:00:47
  Author: felixonmars
Revision: 262764

archrelease: copy trunk to community-testing-any

Added:
  python-texttable/repos/community-testing-any/
  python-texttable/repos/community-testing-any/PKGBUILD
    (from rev 262763, python-texttable/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: python-texttable/repos/community-testing-any/PKGBUILD (from rev 262763, python-texttable/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2017-10-14 17:00:47 UTC (rev 262764)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Yen Chi Hsuan <yan12125 at gmail.com>
+# Contributor: rich_o <rich_o at lavabit.com>
+# Contributor: Jason St. John <jstjohn .. purdue . edu>
+# Contributor: Daniel YC Lin <dlin.tw at gmail>
+
+pkgname=(python-texttable python2-texttable)
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Generate a formatted text table using ASCII characters"
+arch=('any')
+url="https://pypi.python.org/pypi/texttable/"
+license=('LGPL')
+makedepends=('python' 'python2')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://pypi.io/packages/source/t/texttable/texttable-$pkgver.tar.gz")
+sha512sums=('6d15c51e3ba8394cb04edbdd123d85e0068d90ca3b7523f631eab88e02fb0f2a96e6b6e7999ffa53853459d428fd2f4603fea12c0e19cba296e255368e11430e')
+
+prepare() {
+  cp -a texttable-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/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
+}
+
+package_python-texttable() {
+  depends=('python')
+
+  cd texttable-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-texttable() {
+  depends=('python2')
+
+  cd texttable-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list