1 # Maintainer: Morten Linderud <foxboron@archlinux.org>
6 pkgdesc="A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH."
7 url="https://github.com/smallstep/certificates"
10 depends=(glibc pcsclite)
12 source=("$url/releases/download/v${pkgver}/step-ca_${pkgver}.tar.gz")
13 sha512sums=('5d34d72deb9ff37709608739fdddc7997ed2bb7159a84368065061cb129694763e0b8c6682caa9a48431a70cd52f604cbf3b3dce423dacd10230c703235b5114')
20 BUILD_DATE="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" '+%Y-%m-%d %H:%M UTC')"
26 -ldflags "-linkmode external -extldflags \"${LDFLAGS}\" -X \"main.Version=${pkgver}\" -X \"main.BuildTime=${BUILD_DATE}\"" \
31 go test -v ./... || true
35 install -Dm755 "bin/step-ca" "$pkgdir/usr/bin/step-ca"