# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) # Contributor: Felix Yan # Contributor: Gordian Edenhofer _pkgname=certbot pkgname=${_pkgname}-user pkgver=0.10.0 pkgrel=1 pkgdesc="Let’s Encrypt certbot running as certbot user rather than root, with either standalone or webroot mode." arch=('any') license=('Apache') url="https://${_pkgname}.eff.org" depends=('ca-certificates' "python2-acme=${pkgver}" 'python2-configargparse' 'python2-configobj' 'python2-cryptography' 'python2-pyopenssl' 'python2-mock' 'python2-parsedatetime' 'python2-psutil' 'python2-pyrfc3339' 'python2-pythondialog' 'python2-pytz' 'python2-requests' 'python2-setuptools' 'python2-six' 'python2-zope-component' 'python2-zope-interface' 'systemd') checkdepends=('python2-nose') conflicts=('certbot') provides=('certbot') source=("https://pypi.io/packages/source/c/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc} "${_pkgname}.tmpfiles" "${_pkgname}.sysusers") validpgpkeys=('A2CFB51FA275A7286234E7B24D17C995CD9775F2') # Let's Encrypt Client Team sha256sums=('dd64ed8fb3cc3b053f05e779b934433445918668c49bcdbb2c816062815e1661' 'SKIP' 'ca72fe5f7e6ccbbe8afc084d9255f93e3b81ce2793a77103a9382fa9eaff6c97' '151621a821f56178408851e016c7fda67dc4c726f210ad3279b29fd1f43282fa') build() { cd ${_pkgname}-${pkgver} python2 setup.py build } check() { cd ${_pkgname}-${pkgver} python2 setup.py test } package() { cd ${_pkgname}-${pkgver} python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1 install -Dm644 "${srcdir}"/${_pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${_pkgname}.conf install -Dm644 "${srcdir}"/${_pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${_pkgname}.conf }