# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=muacme
pkgver=0.6.0
pkgrel=0
pkgdesc="A convenient wrapper for the ACMEv2 client uacme"
url="https://github.com/jirutka/muacme"
arch="noarch"
license="MIT"
depends="uacme openssl"
install="$pkgname.pre-upgrade $pkgname.post-upgrade"
options="!check"  # no tests provided
source="https://github.com/jirutka/muacme/archive/v$pkgver/$pkgname-$pkgver.tar.gz
	muacme-renew-all.crond
	"

package() {
	make install DESTDIR="$pkgdir" prefix=/usr

	install -m 755 -D "$srcdir"/muacme-renew-all.crond \
		"$pkgdir"/etc/periodic/weekly/muacme-renew-all

	install -d -m 755 "$pkgdir"/etc/ssl/uacme
}

sha512sums="
ab5820472792a70a09a46d80e14e6f9d62353aecab0795b7f53844f58ea388814c300d0c73cb225ae5809d7e5452be03ddc69784d6034ef2f92e53a07adef07a  muacme-0.6.0.tar.gz
37082df7ebd8b6ef3f683509b6d3852c6f56bb6903a90bb12b7fa116003e539617e2863abb600ad3484bcc8f2bc537e9d1a172573e6cf73e87983050b5d623bc  muacme-renew-all.crond
"
