# Contributor: Jordan Christiansen <xordspar0@gmail.com>
# Maintainer: Jordan Christiansen <xordspar0@gmail.com>
pkgname=acme-client
pkgver=1.3.3
pkgrel=0
pkgdesc="Client for issuing certificates from ACME-complaint servers"
url="https://git.wolfsden.cz/acme-client-portable"
arch="all"
license="GPL-2.0-only"
makedepends="openssl-dev>3 byacc automake autoconf"
subpackages="$pkgname-doc"
#source="https://data.wolfsden.cz/sources/acme-client-$pkgver.tar.gz"
source="https://distfiles.alpinelinux.org/distfiles/edge/acme-client-$pkgver.tar.gz"
options="!check" # Tests require modifying /etc/hosts

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
777ddab48300b12fb0a48feffa45a9d7a4f60615373a62248f89423497a348b39616bf19254b3f1a048975b0cde214e9347c8b6342cde9aeb10a81708003e58b  acme-client-1.3.3.tar.gz
"
