community/py3-ndg_httpsclient: clarify license, modernize

Signed-off-by: prspkt <prspkt@protonmail.com>
This commit is contained in:
prspkt 2019-07-25 21:32:31 +03:00
parent c150418316
commit 7b830a8dbd
No known key found for this signature in database
GPG Key ID: 24BA3D41BDA6E870

View File

@ -7,23 +7,20 @@ pkgrel=1
pkgdesc="HTTPS client implementation for httplib and urllib2 based on PyOpenSSL"
url="https://github.com/cedadev/ndg_httpsclient"
arch="noarch"
license="BSD"
license="BSD-2-Clause"
depends="py3-openssl py3-asn1"
makedepends="py3-setuptools"
source="$_pkgname-$pkgver.tar.gz::https://github.com/cedadev/$_pkgname/archive/$pkgver.tar.gz"
source="$_pkgname-$pkgver.tar.gz::https://github.com/cedadev/ndg_httpsclient/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces=py-ndg_httpsclient # Backwards compatibility
provides=py-ndg_httpsclient=$pkgver-r$pkgrel # Backwards compatibility
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}