aboutsummaryrefslogtreecommitdiffstats
path: root/community/certbot/APKBUILD
blob: 3a4a310503e868cd57fc1a1c05504cbf56f799e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=certbot
pkgver=0.22.2
pkgrel=0
pkgdesc="An ACME client that can update Apache/Nginx configurations"
url="https://github.com/certbot/certbot"
arch="noarch"
license="Apache"
depends="py-setuptools py-mock py-acme py-configargparse py-configobj
	py-cryptography py-parsedatetime py-dialog py-openssl
	py-rfc3339 py-tz py-requests py-six py-zope-component py-zope-interface
	py-zope-event py-cffi py-enum34 py-ipaddress py-idna py-argparse py-packaging
	py-certifi py-chardet py-future py-urllib3 py-josepy"
# define acme deps here and add them to makedepends
# so they get pulled in when bootstrapping.
_depends_acme="py-setuptools py-cryptography py-ndg_httpsclient py-asn1 py-openssl
	py-tz py-rfc3339 py-requests py-six py-werkzeug"
replaces="letsencrypt"
makedepends="$depends_dev $_depends_acme"
subpackages="py-acme:acme"
source="certbot-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

check() {
	cd "$builddir"
	python2 setup.py check
}

build() {
	cd "$builddir"
	python2 setup.py build
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir"
}

acme() {
	pkgdesc="ACME protocol implementation for Python"
	depends="$_depends_acme"
	cd "$builddir"/acme
	python2 setup.py build
	python2 setup.py install --prefix=/usr --root="$subpkgdir"
}

sha512sums="ca26be78d29728fc5c20a5290f2dde4d1f2090b7e2829c0b312acac4741ef56440cc21a9db77e3e0cfe59ce0f1f0ab2165cb6823af8a4e2a4528060ad683ffe9  certbot-0.22.2.tar.gz"