# Contributor: Carlo Landmeter # Maintainer: Francesco Colista pkgname=letsencrypt pkgver=0.4.1 pkgrel=0 pkgdesc="An ACME client that can update Apache/Nginx configurations" url="https://github.com/letsencrypt/letsencrypt" arch="noarch" license="Apache" depends="py-setuptools py-mock py-acme py-configargparse py-configobj py-cryptography py-parsedatetime py-psutil 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" depends_dev="" makedepends="$depends_dev $_depends_acme" install="" subpackages="py-acme:acme" source="letsencrypt-$pkgver.tar.gz::https://github.com/letsencrypt/letsencrypt/archive/v$pkgver.tar.gz" _builddir="$srcdir"/letsencrypt-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } 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="ff89a126a9e8498750b3ab05a0b99e76 letsencrypt-0.4.1.tar.gz" sha256sums="750c4a2966ec21009e4f7d510eceb3f97f941f6c19eda8b58b7030ef8518cef9 letsencrypt-0.4.1.tar.gz" sha512sums="8b782ddf352c33c513e26bff0525932c9ab154a7a2545093be8958f851418700b449b3092fb8c4e1d45f6ededed979650c2593668a2dd1294760666702271182 letsencrypt-0.4.1.tar.gz"