# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=easy-rsa
pkgver=3.0.4
pkgrel=0
pkgdesc="Simple shell based CA utility"
url="https://github.com/OpenVPN/easy-rsa"
arch="noarch"
license="GPL-2.0"
depends="openssl"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVPN/easy-rsa/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/share/easy-rsa \
		"$pkgdir"/usr/share/doc/easy-rsa
	cp -rp easyrsa3/* "$pkgdir"/usr/share/easy-rsa/ \
		&& cp -rp doc/* "$pkgdir"/usr/share/doc/easy-rsa/
}

sha512sums="6598a33a958a9dfa473af7770847b095f62288368e0601410914e639e13b6e432c520f72f3bcba4d8bf63fba1002f96f754571be2ca80389e683d9514c397933  easy-rsa-3.0.4.tar.gz"
