aboutsummaryrefslogtreecommitdiffstats
path: root/community/letsencrypt/APKBUILD
blob: 7f3bfbc43b73682475927b768dee449587eee12d (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
49
50
51
52
53
54
55
56
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=letsencrypt
pkgver=0.4.0
pkgrel=0
pkgdesc="An ACME client that can update Apache/Nginx configurations"
url="https://github.com/letsencrypt/letsencrypt"
arch="noarch"
license="Apache"
depends="py-setuptools py-mock py-acme py-configargparse py-configobj
	py-cryptography py-parsedatetime py-psutil 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"
depends_dev=""
makedepends="$depends_dev $_depends_acme"
install=""
subpackages="py-acme:acme"
source="letsencrypt-$pkgver.tar.gz::https://github.com/letsencrypt/letsencrypt/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/letsencrypt-$pkgver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

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

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

md5sums="b9339dd8b687bd95158aa17ca49df15e  letsencrypt-0.4.0.tar.gz"
sha256sums="d7df1faedd6f5c1ffc26fd855350fc3a107dd9fe5c1c2aa4c340024fe807a0f3  letsencrypt-0.4.0.tar.gz"
sha512sums="f04c3fa49619e4e182ec8d10c6e05045d1e0e1a146bad75d9382cbfc6663ad0726c9beb496f0251e43d0dd45d78220c57dda0be8c2d946a515ab2c9f0359a549  letsencrypt-0.4.0.tar.gz"