1 # Maintainer: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
3 pkgname='certbot-dns-inwx'
6 pkgdesc="INWX DNS authenticator plugin for certbot"
8 url="https://github.com/oGGy990/certbot-dns-inwx"
10 depends=('certbot' 'python')
11 makedepends=('python-build' 'python-installer' 'python-wheel')
12 source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
13 sha512sums=('67f40b50823f11c92750d5e961eb452b9cfde57a0a6c19863e07828f082615cc2a0282eb3d7c6c4ed192557dbaeeef7e2e98f1857b228557f1259e1a7ec0acc3')
15 'etc/letsencrypt/inwx.cfg'
19 cd "${pkgname}-${pkgver}"
21 python -m build --wheel --skip-dependency-check --no-isolation
25 cd "${pkgname}-${pkgver}"
27 local _site_packages="$(python -c "import site; print(site.getsitepackages()[0])")"
29 python -m installer --destdir="${pkgdir}" dist/*.whl
31 install --verbose -D --mode=0600 inwx.cfg "${pkgdir}/etc/letsencrypt/inwx.cfg"
32 install --verbose -D --mode=0644 README.md --target-directory "${pkgdir}/usr/share/doc/${pkgname}"
34 # remove unneeded config file from site-packages
35 rm --recursive --verbose "${pkgdir}${_site_packages}/etc"