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

Felix Yan felixonmars at archlinux.org
Sun Jul 8 12:56:18 UTC 2018


    Date: Sunday, July 8, 2018 @ 12:56:17
  Author: felixonmars
Revision: 354845

archrelease: copy trunk to community-staging-any

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

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

Copied: python-texttable/repos/community-staging-any/PKGBUILD (from rev 354843, python-texttable/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-08 12:56:17 UTC (rev 354845)
@@ -0,0 +1,54 @@
+# $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.4.0
+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')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://pypi.io/packages/source/t/texttable/texttable-$pkgver.tar.gz")
+sha512sums=('41d1b429ee32cd717d273152da0263cfff13d79aae7ecc69bda455c1391ea1e6cf74b412e6043bf3d32d62932b4498a2484deb997ef545fdd6195fd5ebd58fc5')
+
+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')
+  optdepends=('python-cjkwrap: for better CJK support')
+
+  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-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list