aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/acme-client/APKBUILD
blob: 202c1abff6b14fb7e0b60579fa8cc0434188419d (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
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=acme-client
pkgver=0.1.16
_ver=${pkgver//./_}
pkgrel=6
pkgdesc="An ACME client for Let's Encrypt written in C"
url="https://github.com/kristapsdz/acme-client-portable"
arch="all"
license="ISC"
options="!check" # no test suite
depends="ca-certificates"
makedepends="bsd-compat-headers libressl-dev" # FIXME: support openssl 1.1
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/kristapsdz/acme-client-portable/archive/VERSION_$_ver.tar.gz
	default-ca.patch
	license_update.patch
	"
builddir="$srcdir/acme-client-portable-VERSION_$_ver"

build() {
	cd "$builddir"
	make PREFIX=/usr
}

package() {
	cd "$builddir"
	make DESTDIR=$pkgdir \
		PREFIX=/usr \
		MAN1DIR=/usr/share/man/man1 \
		install
	install -d "$pkgdir"/var/www/acme "$pkgdir"/etc/ssl/acme
	install -dm0700 "$pkgdir"/etc/ssl/acme/private "$pkgdir"/etc/acme
}

sha512sums="0b8dc0e0e2b4dda518f951fac3a1cce72c962abd6a15fb0e39d548ee24637b25d9f90312e6da0817e22adab7d0e5a4ddd86f65ae50c109cb2241481471c6bd80  acme-client-0.1.16.tar.gz
ff416bad782a60675e0c42c8f611902403f3bdb3daf4e006434cf07837d4c7998e90eef0701f789672495f7cde2d158953f9365055e834619c2ccf52328598ed  default-ca.patch
07ba2de537bd20b11817c1ca695faa784065e141ab9503cad9f8f2f01ef5bb3e2a9f290cde9e3fd1df6408b5ba41158d164f2356fb81eb273e2d6f3b7ace2d5a  license_update.patch"