[arch-commits] Commit in python-oslo-config/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 17:17:23 UTC 2015
Date: Saturday, September 19, 2015 @ 19:17:23
Author: foutrelis
Revision: 141046
archrelease: copy trunk to community-staging-any
Added:
python-oslo-config/repos/community-staging-any/
python-oslo-config/repos/community-staging-any/PKGBUILD
(from rev 141045, python-oslo-config/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-oslo-config/repos/community-staging-any/PKGBUILD (from rev 141045, python-oslo-config/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 17:17:23 UTC (rev 141046)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+pkgbase=python-oslo-config
+pkgname=(python-oslo-config python2-oslo-config)
+_pythonname=oslo.config
+pkgver=2.4.0
+pkgrel=2
+pkgdesc="parsing command line arguments and .ini style configuration files"
+arch=('any')
+url="https://pypi.python.org/pypi/oslo.config/$pkgver"
+license=('GPL')
+makedepends=('python2-setuptools' python-setuptools)
+options=(!emptydirs)
+source=("https://pypi.python.org/packages/source/o/$_pythonname/$_pythonname-$pkgver.tar.gz")
+md5sums=('d46e98ba78d83c982c4beb55212a3048')
+
+prepare(){
+ cp -a $_pythonname-$pkgver{,-2}
+ find $_pythonname-$pkgver-2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
+ sed -i '/argparse/d' "$_pythonname-$pkgver"{,-2}/requirements.txt
+}
+
+build(){
+ cd "$srcdir/$_pythonname-$pkgver"
+ python setup.py build
+ cd "$srcdir/$_pythonname-$pkgver-2"
+ python2 setup.py build
+}
+package_python-oslo-config() {
+ cd "$srcdir/$_pythonname-$pkgver"
+ depends=(python)
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+package_python2-oslo-config() {
+ cd "$srcdir/$_pythonname-$pkgver"
+ depends=(python2)
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ mv $pkgdir/usr/bin/oslo-config-generator $pkgdir/usr/bin/oslo-config-generator2
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list