summaryrefslogtreecommitdiffstats
path: root/testing/py-crypto
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2011-10-21 23:26:13 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2011-12-03 14:49:18 -0600
commitce9bda50724c66cb330cdc140e2d2e23579b1862 (patch)
treee50f9ada26a11ca00568ec8e8e37f07d40e9a250 /testing/py-crypto
parente3ae48ca6c34644f3552a4c037d79c3ce2e8db51 (diff)
downloadaports-ce9bda50724c66cb330cdc140e2d2e23579b1862.tar.bz2
aports-ce9bda50724c66cb330cdc140e2d2e23579b1862.tar.xz
py-crypto - Updated to latest release 2.3, test added
Diffstat (limited to 'testing/py-crypto')
-rw-r--r--testing/py-crypto/APKBUILD28
1 files changed, 16 insertions, 12 deletions
diff --git a/testing/py-crypto/APKBUILD b/testing/py-crypto/APKBUILD
index bd58eeeb9..f00d805bb 100644
--- a/testing/py-crypto/APKBUILD
+++ b/testing/py-crypto/APKBUILD
@@ -1,24 +1,28 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-crypto
-pkgver=2.0.1
-pkgrel=4
+_pkgname=pycrypto
+pkgver=2.3
+pkgrel=1
pkgdesc="A collection of cryptographic algorithms and protocols, implemented for use from Python."
-url="http://www.amk.ca/python/code/crypto.html"
+url="https://www.dlitz.net/software/pycrypto/"
arch="all"
-license="GPL"
-depends="python"
+license="BSD"
+depends=""
makedepends="gmp-dev python-dev"
-source="http://www.amk.ca/files/python/crypto/pycrypto-$pkgver.tar.gz"
+subpackages=""
+source="http://ftp.dlitz.net/pub/dlitz/crypto/$_pkgname/$_pkgname-$pkgver.tar.gz"
+_builddir="$srcdir"/$_pkgname-$pkgver
-_builddir="$srcdir"/pycrypto-$pkgver
-build ()
-{
+build() {
cd "$_builddir"
- python setup.py build
+ python setup.py build || return 1
+ python setup.py test || return 1
}
package() {
cd "$_builddir"
- python setup.py install --root="$pkgdir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
-md5sums="4d5674f3898a573691ffb335e8d749cd pycrypto-2.0.1.tar.gz"
+
+md5sums="2b811cfbfc342d83ee614097effb8101 pycrypto-2.3.tar.gz"