# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname="letsencrypt-nosudo"
pkgver="0.0.1"
pkgrel=1
pkgdesc="Free HTTPS certificates without having to trust the letsencrypt cli with sudo/root"
url="https://github.com/diafygi/letsencrypt-nosudo"
arch="noarch"
license="GPL-3.0"
depends="python2 libressl"
depends_dev=""
makedepends="$depends_dev"
subpackages="${pkgname}-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/itoffshore/${pkgname}/archive/${pkgver}.tar.gz"

builddir="${srcdir}/${pkgname}-${pkgver}"

build() {
	return 0
}

package() {
	cd "$builddir"
	mkdir -p "${pkgdir}/usr/bin"
	mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
	install -Dm755 *.py "${pkgdir}/usr/bin/"
	install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/"
}

md5sums="c95fde63fe3d357ebf54ace79b412d2c  letsencrypt-nosudo-0.0.1.tar.gz"
sha256sums="19f8a5b316c06afd258b101eaad7e28dd2ddf1b1809d5559c683f7412247c690  letsencrypt-nosudo-0.0.1.tar.gz"
sha512sums="1d496a2dc74892f2f359562961547aad71c940fc372e2895d618cdf2a7b44b116ae039608e3589de74658ec9140ffbe1fcb51728805d215a4a6aa0c053c21672  letsencrypt-nosudo-0.0.1.tar.gz"
