[arch-commits] Commit in python-prettytable/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 14:37:03 UTC 2015
Date: Saturday, September 19, 2015 @ 16:37:03
Author: fyan
Revision: 140874
archrelease: copy trunk to community-staging-any
Added:
python-prettytable/repos/community-staging-any/
python-prettytable/repos/community-staging-any/PKGBUILD
(from rev 140873, python-prettytable/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-prettytable/repos/community-staging-any/PKGBUILD (from rev 140873, python-prettytable/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 14:37:03 UTC (rev 140874)
@@ -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=6
+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