archlinux-pkgbuilds/PKGBUILD

28 lines
849 B
Text
Raw Normal View History

2017-01-20 10:37:22 +01:00
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
2017-01-20 10:43:11 +01:00
_pythonmod=zxcvbn-python
pkgname=('python2-zxcvbn' 'python-zxcvbn')
pkgbase=python2-zxcvbn
2018-04-11 17:01:28 +02:00
pkgver=4.4.24
2017-01-20 10:37:22 +01:00
pkgrel=1
pkgdesc="Password strength estimator"
arch=('any')
url="http://pypi.python.org/pypi/${_pythonmod}"
license=('Apache')
2018-04-10 10:27:10 +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")
2018-04-11 17:01:28 +02:00
md5sums=('a056d64bcd46f21b0ac945ac29f9f325')
2017-01-20 10:37:22 +01:00
package_python2-zxcvbn() {
depends=('python2')
makedepends=('python2-setuptools')
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')
makedepends=('python-setuptools')
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
}