[arch-commits] Commit in (4 files)

Levente Polyak anthraxx at archlinux.org
Tue Nov 6 01:58:43 UTC 2018


    Date: Tuesday, November 6, 2018 @ 01:58:43
  Author: anthraxx
Revision: 401683

upgpkg: python-pyotp 2.2.7-1

Added:
  python-pyotp/
  python-pyotp/repos/
  python-pyotp/trunk/
  python-pyotp/trunk/PKGBUILD

----------+
 PKGBUILD |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

Added: python-pyotp/trunk/PKGBUILD
===================================================================
--- python-pyotp/trunk/PKGBUILD	                        (rev 0)
+++ python-pyotp/trunk/PKGBUILD	2018-11-06 01:58:43 UTC (rev 401683)
@@ -0,0 +1,58 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: ELmoussaoui Bilal <bil.elmoussaoui at gmail.com>
+
+pkgbase=python-pyotp
+pkgname=('python-pyotp' 'python2-pyotp')
+_pkgname=pyotp
+_gitcommit=b6f7c814c38654bf7061b760ec3049c250ea2fbf
+pkgver=2.2.7
+pkgrel=1
+pkgdesc='PyOTP is a Python library for generating and verifying one-time passwords'
+url='https://pyotp.readthedocs.io/'
+arch=('any')
+license=('MIT')
+makedepends=('git' 'python-setuptools' 'python-sphinx'
+                   'python2-setuptools' 'python2-sphinx')
+options=('!makeflags')
+source=("git+https://github.com/pyotp/pyotp#commit=${_gitcommit}?signed")
+sha512sums=('SKIP')
+validpgpkeys=('29BCBADB4ECAAAC2382699388AFAFCD242818A52') # Andrey Kislyuk <kislyuk at gmail.com>
+
+pkgver() {
+  cd ${_pkgname}
+  git describe --always --tags | sed 's/^v//;s/-/+/g'
+}
+
+build() {
+  cd ${_pkgname}
+  python setup.py build
+  python2 setup.py build
+  make -C docs text man
+}
+
+check() {
+  cd ${_pkgname}
+  python setup.py test
+  python2 setup.py test
+}
+
+package_python-pyotp() {
+  depends=('python')
+  cd ${_pkgname}
+  python setup.py install --root="${pkgdir}" -O1 --skip-build
+  install -Dm 644 README.rst ./docs/_build/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 ./docs/_build/man/${_pkgname}.1 -t "${pkgdir}/usr/share/man/man1"
+  ln -s /usr/share/man/man1/${_pkgname}.1.gz "${pkgdir}/usr/share/man/man1/${pkgname}.1.gz"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+package_python2-pyotp() {
+  depends=('python2')
+  cd ${_pkgname}
+  python2 setup.py install --root="${pkgdir}" -O1 --skip-build
+  install -Dm 644 README.rst ./docs/_build/text/*.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 ./docs/_build/man/${_pkgname}.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list