upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-texttable / trunk / PKGBUILD
blobe2195ed9d8b1492cd38fccdca5e6d30d6b83e7e6
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Yen Chi Hsuan <yan12125 at gmail.com>
3 # Contributor: rich_o <rich_o@lavabit.com>
4 # Contributor: Jason St. John <jstjohn .. purdue . edu>
5 # Contributor: Daniel YC Lin <dlin.tw at gmail>
7 pkgname=python-texttable
8 pkgver=1.6.7
9 pkgrel=2
10 pkgdesc="Generate a formatted text table using ASCII characters"
11 arch=('any')
12 url="https://pypi.python.org/pypi/texttable/"
13 license=('LGPL')
14 depends=('python')
15 optdepends=('python-cjkwrap: for better CJK support')
16 makedepends=('python-cjkwrap' 'python-setuptools')
17 checkdepends=('python-pytest')
18 source=("$pkgname-$pkgver.tar.gz::https://github.com/foutaise/texttable/archive/v$pkgver.tar.gz")
19 sha512sums=('204dcad0d2438dab8880088d1ea6ab1d0a5d81348294547a6967938bf8e1c27a6c5f91c59c2fe22ce8d1266d7efdb165749e0aebc738644215ab9b1d5a28c419')
21 build() {
22   cd texttable-$pkgver
23   python setup.py build
26 check() {
27   cd texttable-$pkgver
28   pytest tests.py
31 package() {
32   cd texttable-$pkgver
33   python setup.py install --root="$pkgdir" --optimize=1