# Description: get your site on https://
# URL: https://certbot.eff.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-acme python3-configargparse python3-configobj python3-distro python3-parsedatetime python3-zope-component

name=certbot
version=5.6.0
release=1
source=(https://pypi.io/packages/source/c/certbot/certbot-$version.tar.gz)

build() {
  cd $name-$version

  /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
  /usr/bin/python3 -m installer --destdir=$PKG dist/*.whl

  mkdir -p $PKG/{etc,var/lib,var/log}/letsencrypt
  chmod 700 $PKG/var/log/letsencrypt
  chmod 755 $PKG/usr/bin/certbot
}
