[arch-commits] Commit in python-acme/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Jan 12 03:01:17 UTC 2017
Date: Thursday, January 12, 2017 @ 03:01:16
Author: felixonmars
Revision: 206870
archrelease: copy trunk to community-staging-any
Added:
python-acme/repos/community-staging-any/
python-acme/repos/community-staging-any/PKGBUILD
(from rev 206869, python-acme/trunk/PKGBUILD)
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Copied: python-acme/repos/community-staging-any/PKGBUILD (from rev 206869, python-acme/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2017-01-12 03:01:16 UTC (rev 206870)
@@ -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.10.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=('5be1d0f04b9f65392b04b261a8352a09ecc36b42b0b9a1abb688efeeff3d06457dd6c07000d25834455008675dd674a4b4688d34f3927bc4bde4c5b2c5b5961e')
+
+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