# 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"