Date: Sunday, April 9, 2023 @ 18:17:05
  Author: felixonmars
Revision: 1443400

archrelease: copy trunk to community-staging-any

Added:
  certbot-dns-inwx/repos/community-staging-any/
  certbot-dns-inwx/repos/community-staging-any/PKGBUILD
    (from rev 1443397, certbot-dns-inwx/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: certbot-dns-inwx/repos/community-staging-any/PKGBUILD (from rev 
1443397, certbot-dns-inwx/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-09 18:17:05 UTC (rev 1443400)
@@ -0,0 +1,36 @@
+# Maintainer: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
+
+pkgname='certbot-dns-inwx'
+pkgver=2.2.0
+pkgrel=3
+pkgdesc="INWX DNS authenticator plugin for certbot"
+arch=('any')
+url="https://github.com/oGGy990/certbot-dns-inwx";
+license=('Apache')
+depends=('certbot' 'python')
+makedepends=('python-build' 'python-installer' 'python-wheel')
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('67f40b50823f11c92750d5e961eb452b9cfde57a0a6c19863e07828f082615cc2a0282eb3d7c6c4ed192557dbaeeef7e2e98f1857b228557f1259e1a7ec0acc3')
+backup=(
+  'etc/letsencrypt/inwx.cfg'
+)
+
+build() {
+  cd "${pkgname}-${pkgver}"
+
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+
+  local _site_packages="$(python -c "import site; 
print(site.getsitepackages()[0])")"
+
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+
+  install --verbose -D --mode=0600 inwx.cfg 
"${pkgdir}/etc/letsencrypt/inwx.cfg"
+  install --verbose -D --mode=0644 README.md --target-directory 
"${pkgdir}/usr/share/doc/${pkgname}"
+
+  # remove unneeded config file from site-packages
+  rm --recursive --verbose "${pkgdir}${_site_packages}/etc"
+}

Reply via email to