# Contributor: Carlo Landmeter # Maintainer: Francesco Colista pkgname=certbot pkgver=0.9.1 pkgrel=0 pkgdesc="An ACME client that can update Apache/Nginx configurations" url="https://github.com/certbot/certbot" arch="noarch" license="Apache" depends="py-setuptools py-mock py-acme py-configargparse py-configobj py-cryptography py-parsedatetime py-dialog py-openssl py-rfc3339 py-tz py-requests py-six py-zope-component py-zope-interface py-zope-event py-cffi py-enum34 py-ipaddress py-idna" # define acme deps here and add them to makedepends # so they get pulled in when bootstrapping. _depends_acme="py-setuptools py-cryptography py-ndg_httpsclient py-asn1 py-openssl py-tz py-rfc3339 py-requests py-six py-werkzeug" replaces="letsencrypt" depends_dev="" makedepends="$depends_dev $_depends_acme" install="" subpackages="py-acme:acme" source="certbot-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/v$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } acme() { pkgdesc="ACME protocol implementation for Python" depends="$_depends_acme" cd "$_builddir"/acme python setup.py build || return 1 python setup.py install --prefix=/usr --root="$subpkgdir" || return 1 } md5sums="e76569d1226c3846b1d44ff72074eeb0 certbot-0.9.1.tar.gz" sha256sums="4ff8f65082752968961f3b064f336822290437b3e5bda9e7cecc5f2e2a30fe45 certbot-0.9.1.tar.gz" sha512sums="06ce9710bd8cb255c62c548af0f58d309a31346c35cf7ce3984f2b6760deb8bff6361c62a0bb0b30b5401bed914e5310379c05e43a65da6eb16f54b44a1f2a25 certbot-0.9.1.tar.gz"