summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Zhang2018-12-02 20:11:54 +0800
committerBruce Zhang2018-12-02 20:11:54 +0800
commit60392d0d4b6706a52dce4ca327ef0031a3318dcb (patch)
treeff97cfc636a107a2e38b687c57bd48a9b4096d63
parente2159b6bf6d3f67cfa65bccd8545b0bd9bd88c59 (diff)
downloadaur-60392d0d4b6706a52dce4ca327ef0031a3318dcb.tar.gz
pycrypto
-rw-r--r--PKGBUILD23
1 files changed, 11 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 05b41b3d616..bafcf78bf66 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,25 @@
-# Maintainer: Drew DeVault <sir@cmpwn.com>
+# Maintainers: Drew DeVault <sir@cmpwn.com>
+# Current Maintainer: Bruce Zhang <zttt183525594@gmail.com>
pkgname='python-pycrypto'
+_pkgname='pycrypto'
pkgver=2.6.1
-pkgrel=1
+pkgrel=2
pkgdesc='Cryptographic primitives and algorithms for Python'
arch=('any')
url='https://pypi.python.org/pypi/pycrypto'
license=('Public domain')
depends=('python-flask')
-makedepends=('python-distribute')
-source=("http://pypi.python.org/packages/source/p/pycrypto/pycrypto-${pkgver}.tar.gz")
-md5sums=('55a61a054aa66812daf5161a0d5d7eda')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-${pkgver}.tar.gz")
+sha256sums=('f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c')
build() {
-
- cd "${srcdir}/pycrypto-${pkgver}"
- python ./setup.py build
-
+ cd "$_pkgname-$pkgver"
+ python setup.py build
}
package() {
-
- cd "${srcdir}/pycrypto-${pkgver}"
- python setup.py install --root="$pkgdir" --optimize=1
+ cd "$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}