[arch-commits] Commit in python-requestsexceptions/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Dec 24 17:33:03 UTC 2016
Date: Saturday, December 24, 2016 @ 17:33:03
Author: foutrelis
Revision: 201638
archrelease: copy trunk to community-staging-any
Added:
python-requestsexceptions/repos/community-staging-any/
python-requestsexceptions/repos/community-staging-any/PKGBUILD
(from rev 201636, python-requestsexceptions/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-requestsexceptions/repos/community-staging-any/PKGBUILD (from rev 201636, python-requestsexceptions/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-24 17:33:03 UTC (rev 201638)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-requestsexceptions
+pkgname=(python-requestsexceptions python2-requestsexceptions)
+pkgver=1.1.3
+pkgrel=2
+pkgdesc="Import exceptions from potentially bundled packages in requests."
+arch=('any')
+url="https://github.com/openstack-infra/requestsexceptions"
+license=('Apache')
+makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
+ 'python-requests' 'python2-requests')
+source=("git+https://github.com/openstack-infra/requestsexceptions.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a requestsexceptions{,-py2}
+}
+
+build() {
+ cd "$srcdir"/requestsexceptions
+ python setup.py build
+
+ cd "$srcdir"/requestsexceptions-py2
+ python2 setup.py build
+}
+
+package_python-requestsexceptions() {
+ depends=('python-pbr' 'python-requests')
+
+ cd "$srcdir"/requestsexceptions
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-requestsexceptions() {
+ depends=('python2-pbr' 'python2-requests')
+
+ cd "$srcdir"/requestsexceptions-py2
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list