aports/testing/cfssl/APKBUILD
Michał Polański 0aece215fa testing/cfssl: disable on riscv64
vendor/github.com/prometheus/procfs/cpuinfo.go:71:9: undefined: parseCPUInfo
>>> ERROR: cfssl: build failed
2021-07-21 01:48:14 +02:00

34 lines
870 B
Plaintext

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=cfssl
pkgver=1.6.0
pkgrel=0
pkgdesc="Cloudflare PKI and TLS toolkit"
url="https://cfssl.org/"
license="BSD-2-Clause"
arch="all !riscv64" # FTBFS
options="!check" # TODO: fix and enable tests
makedepends="go"
source="https://github.com/cloudflare/cfssl/archive/v$pkgver/cfssl-$pkgver.tar.gz"
export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -trimpath -modcacherw -mod=vendor"
build() {
go build \
-ldflags="-s -w -X github.com/cloudflare/cfssl/cli/version.version=$pkgver" \
-v -o bin/ ./cmd/...
}
check() {
go test ./...
}
package() {
install -Dm755 -t "$pkgdir"/usr/bin bin/*
}
sha512sums="
a1470c50a6ffa506d2c1798a9e8af5a60206cd41d24cc3ca8a071e9ddfc3249a07fa79c03dabc3df0800985be7e930018045ae95ee83d31486cba93e516da111 cfssl-1.6.0.tar.gz
"