aboutsummaryrefslogtreecommitdiffstats
path: root/community/certbot/APKBUILD
blob: c0b7049fd84d280ba5b5bcbdbacdfc6c33c64314 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=certbot
pkgver=0.10.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"
# 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"
depends_dev=""
makedepends="$depends_dev $_depends_acme"
install=""
subpackages="py-acme:acme"
source="certbot-$pkgver.tar.gz::https://github.com/certbot/certbot/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	python2 setup.py build || return 1
}

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

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

md5sums="3eda274c82e4faa96af2ea6dca783748  certbot-0.10.2.tar.gz"
sha256sums="da6c357e831926cfb57ec49c1fb3b9a5bbce0202fb7fb60487ee52944c712341  certbot-0.10.2.tar.gz"
sha512sums="ec3ccb5d5ad1f3a4fd9c4070fb74c877d4d2cece7f23f450c87d504229d80dd63ae4dc6b2ddd77e85ae6636184efa3259ba57eeb929a44172ead41aa067b60fe  certbot-0.10.2.tar.gz"