aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-cryptography/APKBUILD
blob: ed7a6cab289e3ce376272cd30aeea55f7c226142 (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
40
41
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=py-cryptography
_pkgname=cryptography
pkgver=0.8.2
pkgrel=0
pkgdesc="A package which provides cryptographic recipes and primitives"
url="http://pypi.python.org/pypi/cryptography"
arch="all"
license="ASL 2.0"
depends=""
depends_dev="python-dev"
makedepends="$depends_dev py-setuptools libffi-dev openssl-dev"
install=""
subpackages=""
source="https://pypi.python.org/packages/source/c/cryptography/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$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="7d33499e851300c194cbb0396de72462  cryptography-0.8.2.tar.gz"
sha256sums="1c9a022ab3decaf152093e2ef2d5ee4258c72c7d429446c86bd68ff8c0929db6  cryptography-0.8.2.tar.gz"
sha512sums="8a76e325387284facdaa381c27fd8ca3c2e7e4c6dfe41bf6eccdfdc4004f8a5bd8a95f0ff6537dd012f5c7fcec5f86d96fe86a64ec15d63e4bf673d8461a8225  cryptography-0.8.2.tar.gz"