[arch-commits] Commit in python-texttable/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Nov 2 18:15:59 UTC 2018
Date: Friday, November 2, 2018 @ 18:15:59
Author: felixonmars
Revision: 401276
archrelease: copy trunk to community-testing-any
Added:
python-texttable/repos/community-testing-any/
python-texttable/repos/community-testing-any/PKGBUILD
(from rev 401275, python-texttable/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: python-texttable/repos/community-testing-any/PKGBUILD (from rev 401275, python-texttable/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-11-02 18:15:59 UTC (rev 401276)
@@ -0,0 +1,46 @@
+# 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>
+
+pkgbase=python-texttable
+pkgname=(python-texttable python2-texttable)
+pkgver=1.5.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-cjkwrap' 'python2-cjkwrap')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/foutaise/texttable/archive/v$pkgver.tar.gz")
+sha512sums=('f4727947a302c8e1bf09ba08d73f79f083304b42f86f2f181a98f44602961e0b280aedd4e38660630671eac17e6eb92403b89c1ae6ea3cdd3cf861c122b904a3')
+
+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')
+
+ 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