archlinux-pkgbuilds/python2-zxcvbn/PKGBUILD

27 lines
878 B
Text
Raw Permalink Normal View History

2017-01-20 10:37:22 +01:00
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
2018-10-19 10:25:17 +02:00
_pythonmod=zxcvbn-python
pkgname=('python2-zxcvbn' 'python-zxcvbn')
pkgbase=python2-zxcvbn
pkgver=4.4.28
2017-01-20 10:37:22 +01:00
pkgrel=1
pkgdesc="Password strength estimator"
arch=('any')
2018-10-19 10:25:17 +02:00
url="http://pypi.python.org/pypi/zxcvbn"
2017-01-20 10:37:22 +01:00
license=('Apache')
2018-10-19 10:25:17 +02:00
#source=("https://pypi.io/packages/source/${_pythonmod:0:1}/${_pythonmod}/${_pythonmod}-$pkgver.tar.gz")
source=("https://github.com/dwolfhub/${_pythonmod}/archive/v$pkgver.tar.gz")
sha256sums=('b7275765acdf8028c21aa502d742e56de2252bac604c04ba5e336c39f88d5576')
makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
2017-01-20 10:37:22 +01:00
package_python2-zxcvbn() {
depends=('python2')
2017-01-20 10:37:22 +01:00
cd ${srcdir}/${_pythonmod}-$pkgver
python2 setup.py install --root=${pkgdir}
2017-01-20 10:37:22 +01:00
}
package_python-zxcvbn() {
depends=('python')
2017-01-20 10:37:22 +01:00
cd ${srcdir}/${_pythonmod}-$pkgver
python setup.py install --root=${pkgdir}
2017-01-20 10:37:22 +01:00
}