summaryrefslogtreecommitdiffstats
path: root/testing/py-crypto/APKBUILD
blob: f00d805bb2723ce69fa4e75e4ae15a06f39f565a (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-crypto
_pkgname=pycrypto
pkgver=2.3
pkgrel=1
pkgdesc="A collection of cryptographic algorithms and protocols, implemented for use from Python."
url="https://www.dlitz.net/software/pycrypto/"
arch="all"
license="BSD"
depends=""
makedepends="gmp-dev python-dev"
subpackages=""
source="http://ftp.dlitz.net/pub/dlitz/crypto/$_pkgname/$_pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver

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

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

md5sums="2b811cfbfc342d83ee614097effb8101  pycrypto-2.3.tar.gz"