[arch-commits] Commit in python-acme/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Apr 5 05:33:48 UTC 2018


    Date: Thursday, April 5, 2018 @ 05:33:48
  Author: felixonmars
Revision: 314344

archrelease: copy trunk to community-staging-any

Added:
  python-acme/repos/community-staging-any/
  python-acme/repos/community-staging-any/PKGBUILD
    (from rev 314343, python-acme/trunk/PKGBUILD)

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

Copied: python-acme/repos/community-staging-any/PKGBUILD (from rev 314343, python-acme/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-04-05 05:33:48 UTC (rev 314344)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>
+
+pkgbase=python-acme
+pkgname=('python-acme' 'python2-acme')
+pkgver=0.23.0
+pkgrel=1
+pkgdesc="ACME protocol implementation in Python"
+arch=('any')
+license=('Apache')
+url="https://github.com/certbot/certbot"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pyopenssl' 'python2-pyopenssl'
+             'python-pyrfc3339' 'python2-pyrfc3339' 'python-pytz' 'python2-pytz' 'python-requests'
+             'python2-requests' 'python-six' 'python2-six' 'python-josepy' 'python2-josepy'
+             'python-mock' 'python2-mock')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/a/acme/acme-$pkgver.tar.gz")
+sha512sums=('2c954add0cc82094529c9c6acfa775d10be9c590e2e5dfa3b89343c4070f52f3ac4428e899bc8a69f2c5be264a1c7f674aa207392c6df58d691a8500366390d2')
+
+prepare() {
+  cp -a acme-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/acme-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/acme-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/acme-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/acme-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-acme() {
+  depends=('python-setuptools' 'python-pyopenssl' 'python-pyrfc3339' 'python-pytz' 'python-requests'
+           'python-six' 'python-josepy' 'python-mock')
+
+  cd acme-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-acme() {
+  depends=('python2-setuptools' 'python2-pyopenssl' 'python2-pyrfc3339' 'python2-pytz'
+           'python2-requests' 'python2-six' 'python2-josepy' 'python2-mock')
+
+  cd acme-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list