aboutsummaryrefslogblamecommitdiffstats
path: root/community/py-cryptography/APKBUILD
blob: e3a2bfd537c3742333a843f97593939d7183726f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12



                                                 
            






                                                                       
                                                               
























                                                                                        


                                                                                                                                                                        
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=py-cryptography
_pkgname=cryptography
pkgver=1.3.1
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="bc8148d2ff2d80fef8ef2d2e856b3a7f  cryptography-1.3.1.tar.gz"
sha256sums="b4b36175e0f95ddc88435c26dbe3397edce48e2ff5fe41d504cdb3beddcd53e2  cryptography-1.3.1.tar.gz"
sha512sums="8b833619d0aec5e6630c8e069e886f6b708b0b3a4f4ca4e37797a24c69be4cacf162f20c068deaecc3222ee0323583582d384e49fa3dbaeaeefc0d7d8c92918a  cryptography-1.3.1.tar.gz"