aboutsummaryrefslogtreecommitdiffstats
path: root/testing/easy-rsa/APKBUILD
blob: 0f2c873da170b95b937cc0a38981a5bd7dfa5ef4 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Natanael Copa
pkgname=easy-rsa
pkgver=2.2.2
pkgrel=0
pkgdesc="Simple shell based CA utility"
url="https://github.com/OpenVPN/easy-rsa"
arch="noarch"
license="GPL2"
depends="openssl"
depends_dev=""
makedepends="$depends_dev autoconf automake"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVPN/easy-rsa/archive/$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	aclocal && autoconf && automake --add-missing
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr
	make  || return 1
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/usr/share/easy-rsa
	make install DESTDIR="$pkgdir" || return 1
}

md5sums="040238338980617bc9c2df4274349593  easy-rsa-2.2.2.tar.gz"
sha256sums="38f1f84e9b966df8b312365c7c75a455bdf003abdd5156e7106fa9c7771583ae  easy-rsa-2.2.2.tar.gz"
sha512sums="129b41515a472908e6bb883c5567eaae15af2193874aeb3cb02744dd23b760ac87f00f951d9c163fb30386034f78310df5e239d94c3f6e3a80cf9dee79ae702a  easy-rsa-2.2.2.tar.gz"