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

Felix Yan felixonmars at archlinux.org
Sat Mar 4 03:43:47 UTC 2017


    Date: Saturday, March 4, 2017 @ 03:43:46
  Author: felixonmars
Revision: 214763

archrelease: copy trunk to community-staging-any

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

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

Copied: python-acme/repos/community-staging-any/PKGBUILD (from rev 214762, python-acme/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2017-03-04 03:43:46 UTC (rev 214763)
@@ -0,0 +1,57 @@
+# $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.12.0
+pkgrel=1
+pkgdesc="ACME protocol implementation in Python"
+arch=('any')
+license=('Apache')
+url="https://github.com/letsencrypt/letsencrypt"
+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-werkzeug' 'python2-werkzeug'
+             'python-mock' 'python2-mock')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://pypi.io/packages/source/a/acme/acme-$pkgver.tar.gz")
+sha512sums=('a5f0c7448d689bda648ebe2b630feaf48828ef564b16d7615d681441ab9f30d9860a5d5c4a4d49d20ec2475923dbb1100a0dcf6d6376d5c3cb2c1173e14f42bd')
+
+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 nosetests
+
+  cd "$srcdir"/acme-$pkgver-py2
+  python2 setup.py nosetests
+}
+
+package_python-acme() {
+  depends=('python-setuptools' 'python-pyopenssl' 'python-pyrfc3339' 'python-pytz' 'python-requests'
+           'python-six' 'python-werkzeug' '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-werkzeug' 'python2-mock')
+
+  cd acme-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  mv "$pkgdir"/usr/bin/jws{,2}
+}


More information about the arch-commits mailing list