aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-ndg_httpsclient/APKBUILD
blob: 263c240b7329a8299107ca64038ae260ca0c1215 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-ndg_httpsclient
pkgver=0.4.4
pkgrel=0
pkgdesc="HTTPS client implementation for httplib and urllib2 based on PyOpenSSL"
url="https://github.com/cedadev/ndg_httpsclient"
arch="noarch"
license="BSD"
depends="py-openssl py-asn1"
depends_dev=""
makedepends="$depends_dev py-setuptools"
install=""
subpackages=""
source="ndg_httpsclient-$pkgver.tar.gz::https://github.com/cedadev/ndg_httpsclient/archive/$pkgver.tar.gz"

_builddir="$srcdir"/ndg_httpsclient-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

sha512sums="604ea4a27915cd338549c0c51f5ec3419a56f1c24472b2ecded7cb7e9939a73b3b93cdbe0b62ea27793949aa035253f767f330ffcd8d1c044ae3516db99dc59c  ndg_httpsclient-0.4.4.tar.gz"