mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-15 04:43:01 +01:00
29 lines
775 B
Plaintext
29 lines
775 B
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=py-crypto
|
|
_pkgname=pycrypto
|
|
pkgver=2.6
|
|
pkgrel=0
|
|
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="88dad0a270d1fe83a39e0467a66a22bb pycrypto-2.6.tar.gz"
|