diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2019-02-26 12:23:40 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2019-02-26 12:23:40 +0100 |
commit | 048828100ddee80324e6c440f326d37325b2982b (patch) | |
tree | 9d26056f15ef89c622e889a93f2a48d0982a5699 /pcr | |
parent | f633e8cc98b52ea18c9820520af6b2ac293c96f3 (diff) | |
download | abslibre-048828100ddee80324e6c440f326d37325b2982b.tar.gz abslibre-048828100ddee80324e6c440f326d37325b2982b.tar.bz2 abslibre-048828100ddee80324e6c440f326d37325b2982b.zip |
pcr/python-pycrypto: added
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/python-pycrypto/PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pcr/python-pycrypto/PKGBUILD b/pcr/python-pycrypto/PKGBUILD new file mode 100644 index 000000000..7fa8902d2 --- /dev/null +++ b/pcr/python-pycrypto/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Andreas Grapentin <oaken-source@parabola.nu> + +_pkgname=pycrypto +pkgname=(python{,2}-$_pkgname) +pkgver=2.6.1 +pkgrel=3 +pkgdesc='Cryptographic primitives and algorithms for Python' +arch=(any) +url='https://pypi.python.org/pypi/pycrypto' +license=('Public domain') + +_depends=(flask) +makedepends=(python{,2}-setuptools) +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") +md5sums=('55a61a054aa66812daf5161a0d5d7eda') + +_package() { + depends=("$1" "${_depends[@]/#/$1-}") + cd "$srcdir"/$_pkgname-$pkgver + $1 setup.py install --root="$pkgdir" +} + +for _pkg in "${pkgname[@]}"; do + eval "package_$_pkg () { _package ${_pkg%%-*}; }" +done |