aboutsummaryrefslogtreecommitdiffstats
path: root/community/easy-rsa/APKBUILD
blob: b624b011a514ec6350a6ef7e8e3e5d5d985fa9e4 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=easy-rsa
pkgver=3.0.6
pkgrel=0
pkgdesc="Simple shell based CA utility"
url="https://github.com/OpenVPN/easy-rsa"
arch="noarch"
license="GPL-2.0-only"
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/
}

check() {
	cd "$builddir"
	./easyrsa3/easyrsa help
}

sha512sums="ce553b483ed2facab71d9bc212c4a454c6ed4a6489a0b963c4fc190916c71d048955e1e24d3e58a39438a51a83a02bf696bb2b9292c6ff665113043509062eb1  easy-rsa-3.0.6.tar.gz"