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

Felix Yan fyan at archlinux.org
Sat Sep 19 15:17:47 UTC 2015


    Date: Saturday, September 19, 2015 @ 17:17:46
  Author: fyan
Revision: 140898

archrelease: copy trunk to community-staging-any

Added:
  python-oauthlib/repos/community-staging-any/
  python-oauthlib/repos/community-staging-any/PKGBUILD
    (from rev 140897, python-oauthlib/trunk/PKGBUILD)

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

Copied: python-oauthlib/repos/community-staging-any/PKGBUILD (from rev 140897, python-oauthlib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 15:17:46 UTC (rev 140898)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-oauthlib
+pkgname=(python-oauthlib python2-oauthlib)
+pkgver=1.0.3
+pkgrel=2
+_libname=oauthlib
+pkgdesc="A generic, spec-compliant, thorough implementation of the OAuth request-signing logic"
+arch=(any)
+url="https://github.com/idan/oauthlib"
+license=('BSD')
+source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)
+makedepends=(python-setuptools python2-setuptools)
+
+build() {
+	cd "$srcdir/$_libname-$pkgver"
+
+	rm -rf ../buildpy3; mkdir ../buildpy3
+	python setup.py build -b ../buildpy3
+
+	rm -rf ../buildpy2; mkdir ../buildpy2
+	python2 setup.py build -b ../buildpy2
+}
+
+package_python-oauthlib() {
+	depends=(python-cryptography)
+
+	cd "$srcdir/$_libname-$pkgver"
+	rm -rf build; ln -s ../buildpy3 build
+	python setup.py install --skip-build -O1 --root="$pkgdir"
+	install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+	chmod -R a+r "$pkgdir/usr/lib"
+}
+
+package_python2-oauthlib() {
+	depends=(python2-cryptography)
+
+	cd "$srcdir/$_libname-$pkgver"
+	rm -rf build; ln -s ../buildpy2 build
+	python2 setup.py install --skip-build -O1 --root="$pkgdir"
+	install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+	chmod -R a+r "$pkgdir/usr/lib"
+}
+
+sha256sums=('ef4bfe4663ca3b97a995860c0173b967ebd98033d02f38c9e1b2cbb6c191d9ad')



More information about the arch-commits mailing list