summaryrefslogtreecommitdiffstats
path: root/abs/extra/pycrypto/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/pycrypto/PKGBUILD')
-rw-r--r--abs/extra/pycrypto/PKGBUILD26
1 files changed, 15 insertions, 11 deletions
diff --git a/abs/extra/pycrypto/PKGBUILD b/abs/extra/pycrypto/PKGBUILD
index 2801337..fba0c5d 100644
--- a/abs/extra/pycrypto/PKGBUILD
+++ b/abs/extra/pycrypto/PKGBUILD
@@ -1,19 +1,23 @@
-# $Id: PKGBUILD 17322 2008-10-28 12:29:19Z douglas $
+# $Id: PKGBUILD 96778 2010-10-24 17:01:27Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Kritoke <kritoke@gamebox.net>
pkgname=pycrypto
-pkgver=2.0.1
-pkgrel=3
-pkgdesc="A collection of cryptographic algorithms and protocols, implemented for use from Python."
+pkgver=2.3
+pkgrel=1
+pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python."
arch=(i686 x86_64)
-depends=('python' 'gmp')
-url="http://www.amk.ca/python/code/crypto.html"
-license=(GPL)
-source=(http://www.amk.ca/files/python/crypto/${pkgname}-${pkgver}.tar.gz)
-md5sums=('4d5674f3898a573691ffb335e8d749cd')
+depends=('python2')
+url="http://www.dlitz.net/software/pycrypto/"
+license=(custom)
+source=(http://ftp.dlitz.net/pub/dlitz/crypto/${pkgname}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('4f11e85fbcf13960373650fc2dae8f088f9b001f07fb6d3efb2fcb5334987182')
build() {
- cd ${startdir}/src/${pkgname}-${pkgver}
- python setup.py build install --root=${startdir}/pkg
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ python2 setup.py build
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/"
+ cp -r LEGAL "${pkgdir}/usr/share/licenses/${pkgname}/"
}