diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-12 14:20:59 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-12 14:22:05 +0000 |
commit | 15b876ea96819b7a78aacce5c52cecd6813e7f0f (patch) | |
tree | 2ecdc30240b8b5639fac39ce7a5ec2efda155f2d /main/py-crypto/APKBUILD | |
parent | 7768da3902655d7882ab9016a538b06df28bedcc (diff) | |
download | aports-15b876ea96819b7a78aacce5c52cecd6813e7f0f.tar.bz2 aports-15b876ea96819b7a78aacce5c52cecd6813e7f0f.tar.xz |
main/py-crypto: moved from testing
Diffstat (limited to 'main/py-crypto/APKBUILD')
-rw-r--r-- | main/py-crypto/APKBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/main/py-crypto/APKBUILD b/main/py-crypto/APKBUILD new file mode 100644 index 0000000000..7dfc552103 --- /dev/null +++ b/main/py-crypto/APKBUILD @@ -0,0 +1,28 @@ +# 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" |