aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cfssl/APKBUILD
blob: 3c4f707a3e680a019e383ac0c62816b4ae4fdd0e (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
# Contributor:
# Maintainer:
pkgname=cfssl
pkgver=1.3.4
pkgrel=0
pkgdesc="Cloudflare PKI and TLS toolkit"
url="https://cfssl.org"
arch="all"
license="BSD-2-Clause"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/cloudflare/$pkgname/archive/$pkgver.tar.gz"

build() {
	cd "$srcdir"

	mkdir -p src/github.com/cloudflare
	cp -r "$builddir" src/github.com/cloudflare/cfssl

	export GOPATH="$PWD"
	go install -tags pkcs11 github.com/cloudflare/cfssl/cmd/...
}

package() {
	cd "$srcdir"/bin

	mkdir -p "$pkgdir"/usr/bin
	install -m755 "$srcdir"/bin/* "$pkgdir"/usr/bin/
}

sha512sums="796f24f9a7cd9966b3586b5b08deb410570cc31ec747b0c834215c105df1b4fea4907bfa223d196ad71fb296724dc690b6ffd298c8ef81db1333ed3e69f1ecd4  cfssl-1.3.4.tar.gz"