[arch-commits] Commit in python-ndg-httpsclient/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Mon Nov 29 22:18:46 UTC 2021
Date: Monday, November 29, 2021 @ 22:18:45
Author: felixonmars
Revision: 1057644
archrelease: copy trunk to community-staging-any
Added:
python-ndg-httpsclient/repos/community-staging-any/
python-ndg-httpsclient/repos/community-staging-any/PKGBUILD
(from rev 1057643, python-ndg-httpsclient/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-ndg-httpsclient/repos/community-staging-any/PKGBUILD (from rev 1057643, python-ndg-httpsclient/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-29 22:18:45 UTC (rev 1057644)
@@ -0,0 +1,32 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Hugo Osvaldo Barrera <hugo at osvaldobarrera.com.ar>
+
+pkgname=python-ndg-httpsclient
+_pkgname=ndg_httpsclient
+pkgver=0.5.1
+pkgrel=9
+pkgdesc="Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL"
+arch=(any)
+url="https://pypi.python.org/pypi/ndg-httpsclient"
+license=('BSD')
+depends=(python-pyopenssl python-pyasn1)
+makedepends=(python-setuptools)
+options=(!emptydirs)
+source=(https://files.pythonhosted.org/packages/source/n/ndg-httpsclient/$_pkgname-$pkgver.tar.gz)
+sha256sums=('d72faed0376ab039736c2ba12e30695e2788c4aa569c9c3e3d72131de2592210')
+
+build() {
+ cd "$srcdir"/$_pkgname-$pkgver
+
+ rm -rf ../buildpy3; mkdir ../buildpy3
+ python setup.py build -b ../buildpy3
+}
+
+package() {
+ _site_packages=$(python -sSc 'import site; print(site.getsitepackages()[0])')
+
+ cd "$srcdir"/$_pkgname-$pkgver
+ rm -rf build; ln -s ../buildpy3 build
+ python setup.py install --skip-build -O1 --root="$pkgdir"
+ install -Dm0644 "$pkgdir$_site_packages"/ndg/httpsclient/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list