Closed issue by no2spam on void-packages repository https://github.com/void-linux/void-packages/issues/11518 Description: Could this alpine linux build template could be of any use? [Alpine Linux Template](https://git.alpinelinux.org/aports/plain/community/certbot/APKBUILD) `# Contributor: Carlo Landmeter # Maintainer: Francesco Colista pkgname=certbot pkgver=0.34.0 pkgrel=0 pkgdesc="An ACME client that can update Apache/Nginx configurations" url="https://github.com/certbot/certbot" arch="noarch" license="Apache" depends=" py3-acme=$pkgver-r$pkgrel py3-argparse py3-configargparse py3-configobj py3-cryptography py3-josepy py3-mock py3-parsedatetime py3-rfc3339 py3-tz py3-setuptools py3-zope-component py3-zope-interface " checkdepends="py3-augeas" makedepends="python3-dev" replaces="letsencrypt" subpackages="py3-acme:acme $pkgname-nginx $pkgname-apache $pkgname-postfix" source="certbot-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/v$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" local i for i in . $subpackages; do cd "$builddir"/${i##*:} python3 setup.py build done } check() { cd "$builddir" local i for i in . $subpackages; do cd "$builddir"/${i##*:} python3 setup.py check done } package() { cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } acme() { cd "$builddir"/acme pkgdesc="ACME protocol implementation for Python" depends=" py3-setuptools py3-cryptography py3-josepy py3-mock py3-openssl py3-rfc3339 py3-tz py-requests py3-requests-toolbelt py3-six " python3 setup.py install --prefix=/usr --root="$subpkgdir" } nginx() { cd "$builddir"/certbot-nginx pkgdesc="nginx plugin for $pkgname" depends=" certbot=$pkgver-r$pkgrel py3-acme=$pkgver-r$pkgrel py3-mock py3-openssl py3-setuptools py3-zope-interface py3-parsing " python3 setup.py install --prefix=/usr --root="$subpkgdir" } apache() { cd "$builddir"/certbot-apache pkgdesc="apache plugin for $pkgname" depends=" certbot=$pkgver-r$pkgrel py3-acme=$pkgver-r$pkgrel py3-mock py3-augeas py3-setuptools py3-zope-component py3-zope-interface " python3 setup.py install --prefix=/usr --root="$subpkgdir" } postfix() { cd "$builddir"/certbot-apache pkgdesc="postfix plugin for $pkgname" depends=" certbot=$pkgver-r$pkgrel py3-acme=$pkgver-r$pkgrel py3-setuptools py3-six py3-zope-component py3-zope-interface " python3 setup.py install --prefix=/usr --root="$subpkgdir" } sha512sums="24d4a58bcc220451532b1b7d1ddaa90ef773935ff65c2b06e121f044b5575d159555a757660abebd72ff4134a257394dbc99c981729d846d565c75f692317a30 certbot-0.34.0.tar.gz" `