[arch-commits] Commit in python-acme/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Dec 7 06:04:11 UTC 2017
Date: Thursday, December 7, 2017 @ 06:04:08
Author: felixonmars
Revision: 272662
archrelease: copy trunk to community-staging-any
Added:
python-acme/repos/community-staging-any/
python-acme/repos/community-staging-any/PKGBUILD
(from rev 272659, python-acme/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: python-acme/repos/community-staging-any/PKGBUILD (from rev 272659, python-acme/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2017-12-07 06:04:08 UTC (rev 272662)
@@ -0,0 +1,58 @@
+# $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.20.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-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=('1eedb3ca92203d9a3274ab14c35503dd849af4a67227517d2c735e6ea2e0baa4de9a68eefd2351752e1038d4d99eb04d75b1b7133005727ea5845b56b54c8625')
+
+prepare() {
+ sed -i "/'argparse',/d" acme-$pkgver/setup.py
+ 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