aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-openssl/APKBUILD
blob: 82b42751649f5f96820bdc24a950625dd4a34dd7 (plain)
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
39
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-openssl
pkgver=0.14
pkgrel=0
pkgdesc="Python wrapper module around the OpenSSL library"
url="http://pyopenssl.sourceforge.net/"
arch="noarch"
license="ASL 2.0"
depends="python"
depends_dev=""
makedepends="openssl-dev python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-$pkgver.tar.gz"

_builddir="$srcdir"/pyOpenSSL-$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"
	python setup.py build || return 1
}

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

md5sums="8579ff3a1d858858acfba5f046a4ddf7  pyOpenSSL-0.14.tar.gz"
sha256sums="a99db8e59c120138ad8a72eecedcc24b4510d2eed3ce48213b7e32f22cc4ee6e  pyOpenSSL-0.14.tar.gz"
sha512sums="afd14aad8f7313425b9f0d79d80fbc17feaf128204cbda21db4116c8ce6e08e77e865110971c02bdc99b27a2d43402cc87f04586375167f41c61d0f474109512  pyOpenSSL-0.14.tar.gz"