diff options
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 20 insertions, 12 deletions
@@ -1,20 +1,24 @@ pkgbase = python-acme-git pkgdesc = ACME protocol implementation for Python - pkgver = 2.6.0.r10.g2d8a274eb + pkgver = 2.8.0.r6.g926d0c7e0 pkgrel = 1 url = https://github.com/certbot/certbot arch = any license = Apache makedepends = git - depends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools + makedepends = python-sphinx + makedepends = python-sphinx_rtd_theme depends = python-cryptography depends = python-josepy depends = python-pyopenssl depends = python-pyrfc3339 depends = python-pytz depends = python-requests - depends = python-requests-toolbelt - provides = python-acme=2.6.0.r10.g2d8a274eb + provides = python-acme=2.8.0.r6.g926d0c7e0 conflicts = python-acme source = certbot::git+https://github.com/certbot/certbot sha512sums = SKIP @@ -2,15 +2,15 @@ pkgname=python-acme-git _reponame="certbot" -pkgver=2.6.0.r10.g2d8a274eb +pkgver=2.8.0.r6.g926d0c7e0 pkgrel=1 pkgdesc="ACME protocol implementation for Python" arch=('any') license=('Apache') url="https://github.com/certbot/${_reponame}" -depends=('python-setuptools' 'python-cryptography' 'python-josepy' 'python-pyopenssl' - 'python-pyrfc3339' 'python-pytz' 'python-requests' 'python-requests-toolbelt') -makedepends=('git') +depends=('python-cryptography' 'python-josepy' 'python-pyopenssl' + 'python-pyrfc3339' 'python-pytz' 'python-requests') +makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools' 'python-sphinx' 'python-sphinx_rtd_theme') provides=("python-acme=${pkgver}") conflicts=("python-acme") source=("${_reponame}"::"git+https://github.com/certbot/${_reponame}") @@ -24,14 +24,18 @@ pkgver() { ) } +prepare() { + git -C "${srcdir}/${_reponame}" clean -dfx +} + build() { cd "${srcdir}/${_reponame}/acme" - python setup.py clean - rm -rf build dist - python setup.py build + python -m build --wheel --no-isolation + make -C docs man # man pages } package_python-acme-git() { cd "${srcdir}/${_reponame}/acme" - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + python -m installer --destdir="${pkgdir}" dist/*.whl + install -vDm644 -t "${pkgdir}/usr/share/man/man1" docs/_build/man/*.1 } |