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

Daniel Wallace dwallace at nymeria.archlinux.org
Thu May 22 20:06:35 UTC 2014


    Date: Thursday, May 22, 2014 @ 22:06:35
  Author: dwallace
Revision: 111717

archrelease: copy trunk to community-any

Added:
  python-prettytable/repos/community-any/
  python-prettytable/repos/community-any/PKGBUILD
    (from rev 111716, python-prettytable/trunk/PKGBUILD)

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

Copied: python-prettytable/repos/community-any/PKGBUILD (from rev 111716, python-prettytable/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2014-05-22 20:06:35 UTC (rev 111717)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Sebastien Leduc <sebastien at sleduc.fr>
+# Contributor: Emmanuel Gil Peyrot <linkmauve at linkmauve.fr>
+
+pkgbase=python-prettytable
+_pkgname=prettytable
+pkgname=( python-prettytable python2-prettytable)
+pkgver=0.7.2
+pkgrel=5
+pkgdesc="A simple Python library for easily displaying tabular data in a visually appealing ASCII table format"
+url="http://pypi.python.org/pypi/PrettyTable"
+arch=('any')
+license=('BSD')
+makedepends=('python2-setuptools' python-setuptools)
+source=("http://pypi.python.org/packages/source/P/PrettyTable/prettytable-${pkgver}.tar.gz")
+md5sums=('a6b80afeef286ce66733d54a0296b13b')
+
+prepare() {
+    cp -a $srcdir/$_pkgname-$pkgver $srcdir/$_pkgname-$pkgver-2
+    find $_pkgname-$pkgver-2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
+}
+
+build() {
+  cd "$srcdir/$_pkgname-$pkgver"
+  python setup.py build
+  cd $srcdir/$_pkgname-$pkgver-2
+  python2 setup.py build
+}
+
+package_python-prettytable() {
+  cd "$srcdir/$_pkgname-$pkgver"
+  chmod 644 -R prettytable.egg-info
+  depends=(python)
+  python setup.py install --root="$pkgdir/"
+}
+package_python2-prettytable() {
+  cd "$srcdir/$_pkgname-$pkgver-2"
+  chmod 644 -R prettytable.egg-info
+  depends=(python2)
+  python2 setup.py install --root="$pkgdir/"
+}




More information about the arch-commits mailing list