summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Moch2018-11-01 05:40:46 -0400
committerDaniel Moch2018-11-01 05:40:46 -0400
commitd7d8d6edc08f5aa5901ddfe9b657fc33378f0cd2 (patch)
tree6aa808a240a84ec18c741f0e1d41ff4e243fc634
parente1469a8890435d25b2bc91895e075b449f51457e (diff)
downloadpython-django-otp-d7d8d6edc08f5aa5901ddfe9b657fc33378f0cd2.tar.gz
upgpkg: python-django-otp 0.5.1-2
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD38
2 files changed, 41 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4b2218c..b6eefff 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,23 @@
pkgbase = python-django-otp
pkgdesc = A framework for adding two-factor authentication to Django using one-time passwords
pkgver = 0.5.1
- pkgrel = 1
+ pkgrel = 2
url = https://bitbucket.org/psagers/django-otp
arch = any
license = BSD
- makedepends = python
makedepends = python-setuptools
- depends = python
- depends = python-django
+ makedepends = python2-setuptools
optdepends = python-qrcode: For OTP setup with QR code
- source = django-otp-0.5.1.tar.gz::https://files.pythonhosted.org/packages/source/d/django-otp/django-otp-0.5.1.tar.gz
- sha512sums = bdce0ef01013bed059ac4cb2c3d4ccb9ce8c6da94451f4b1a8ff8b7ea03e6206d6b357550af6b423aabf17a4bca8065eec171e6b8b16b2a4c05bbb3234d0db20
+ source = django-otp-0.5.1.tar.gz::https://files.pythonhosted.org/packages/source//django-otp/django-otp-0.5.1.tar.gz
+ source = django-otp-0.5.1.tar.gz.asc::https://files.pythonhosted.org/packages/source//django-otp/django-otp-0.5.1.tar.gz.asc
+ validpgpkeys = 21024EE045D76BF8758F7A5B8B14DEF5236837D8
+ sha256sums = 529f936e9b6acbb011ac575d2e7e1a6c823661627ebcb314c11cd721237da433
+ sha256sums = SKIP
pkgname = python-django-otp
+ depends = python
+ depends = python-django
+
+pkgname = python2-django-otp
+ depends = python2
+ depends = python2-django
diff --git a/PKGBUILD b/PKGBUILD
index 005e244..8aab383 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,45 @@
# Maintainer: Daniel Moch <daniel AT danielmoch DOT com>
-_pkgname=django-otp
-pkgname=python-django-otp
+_name=django-otp
+pkgbase=python-django-otp
+pkgname=('python-django-otp' 'python2-django-otp')
pkgver=0.5.1
-pkgrel=1
+pkgrel=2
pkgdesc="A framework for adding two-factor authentication to Django using one-time passwords"
url="https://bitbucket.org/psagers/django-otp"
license=('BSD')
arch=('any')
-depends=('python' 'python-django' )
optdepends=('python-qrcode: For OTP setup with QR code')
-makedepends=('python' 'python-setuptools')
-source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-$pkgver.tar.gz")
-sha512sums=('bdce0ef01013bed059ac4cb2c3d4ccb9ce8c6da94451f4b1a8ff8b7ea03e6206d6b357550af6b423aabf17a4bca8065eec171e6b8b16b2a4c05bbb3234d0db20')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_name}/${_name}-$pkgver.tar.gz"
+ "${_name}-${pkgver}.tar.gz.asc::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_name}/${_name}-$pkgver.tar.gz.asc")
+validpgpkeys=('21024EE045D76BF8758F7A5B8B14DEF5236837D8')
+sha256sums=('529f936e9b6acbb011ac575d2e7e1a6c823661627ebcb314c11cd721237da433'
+ 'SKIP')
+
+prepare() {
+ cp -a ${_name}-$pkgver{,-py2}
+}
build() {
- cd "$srcdir/${_pkgname}-${pkgver}"
+ cd "$srcdir/${_name}-${pkgver}"
+ python setup.py build
+
+ cd "$srcdir/${_name}-${pkgver}-py2"
python setup.py build
}
-package() {
- cd "$srcdir/${_pkgname}-${pkgver}/"
+package_python-django-otp() {
+ depends=('python' 'python-django' )
+ cd "$srcdir/${_name}-${pkgver}/"
python setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+package_python2-django-otp() {
+ depends=('python2' 'python2-django' )
+ cd "$srcdir/${_name}-${pkgver}-py2/"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
# vim: ts=2 sts=2 sw=2 et ft=PKGBUILD