[arch-commits] Commit in python-texttable/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Fri Oct 30 13:00:39 UTC 2015


    Date: Friday, October 30, 2015 @ 14:00:39
  Author: fyan
Revision: 145304

archrelease: copy trunk to community-any

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

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

Copied: python-texttable/repos/community-any/PKGBUILD (from rev 145303, python-texttable/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-10-30 13:00:39 UTC (rev 145304)
@@ -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.3
+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')
+source=("https://pypi.python.org/packages/source/t/texttable/texttable-${pkgver}.tar.gz")
+sha512sums=('d9a50f6fd9cd2a6d55afd5e686ac8ff2b2ebcf8c8041209ffae3e3864529c54a384840a65df2b87a942528005ca864d00bb01dfaeb33308843c01db7471931c8')
+
+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 "$srcdir/texttable-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-texttable() {
+  depends=('python2')
+
+  cd "$srcdir/texttable-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+}



More information about the arch-commits mailing list