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

Evangelos Foutras foutrelis at archlinux.org
Sat Dec 24 11:28:09 UTC 2016


    Date: Saturday, December 24, 2016 @ 11:28:09
  Author: foutrelis
Revision: 201446

archrelease: copy trunk to community-staging-any

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

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

Copied: python-texttable/repos/community-staging-any/PKGBUILD (from rev 201444, python-texttable/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 11:28:09 UTC (rev 201446)
@@ -0,0 +1,43 @@
+# $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=0.8.7
+pkgrel=2
+pkgdesc="Generate a formatted text table using ASCII characters"
+arch=('any')
+url="https://pypi.python.org/pypi/texttable/"
+license=('LGPL')
+makedepends=('python' 'python2')
+source=("https://pypi.io/packages/source/t/texttable/texttable-$pkgver.tar.gz")
+sha512sums=('8fe5a2eebfb1a415576702afa909a110e6e208a9b3c249cd53a582ab389d50d20b52547c8dc7a9de77bcd2ea243288a7813a9fdf4a7c1cd71f96b51fa7dfed86')
+
+prepare() {
+  cp -a texttable-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/texttable-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/texttable-$pkgver-py2
+  python2 setup.py build
+}
+
+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