Date: Thursday, March 8, 2018 @ 01:55:38
  Author: felixonmars
Revision: 304165

archrelease: copy trunk to community-staging-any

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

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

Copied: python-acme/repos/community-staging-any/PKGBUILD (from rev 304164, 
python-acme/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2018-03-08 01:55:38 UTC (rev 304165)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>
+
+pkgbase=python-acme
+pkgname=('python-acme' 'python2-acme')
+pkgver=0.22.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=('b08320ff077177228824fd20eda404ac0c0924ed3bd8776fab8d1a65e525a8133b84f38a237fcfae74eb9b7481b6bb6c3a078355ebb12eab4f1b77404d135c41')
+
+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
+}

Reply via email to