[arch-commits] Commit in step-ca/repos (community-x86_64 community-x86_64/PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Thu Jan 28 23:36:09 UTC 2021
Date: Thursday, January 28, 2021 @ 23:36:09
Author: foxboron
Revision: 833607
archrelease: copy trunk to community-x86_64
Added:
step-ca/repos/community-x86_64/
step-ca/repos/community-x86_64/PKGBUILD
(from rev 833606, step-ca/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: step-ca/repos/community-x86_64/PKGBUILD (from rev 833606, step-ca/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-01-28 23:36:09 UTC (rev 833607)
@@ -0,0 +1,38 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=step-ca
+pkgver=0.15.6
+pkgrel=1
+pkgdesc="A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH."
+url="https://github.com/smallstep/certificates"
+arch=(x86_64)
+license=(Apache)
+depends=(glibc pcsclite)
+makedepends=(go)
+source=("$url/releases/download/v${pkgver}/step-certificates_${pkgver}.tar.gz")
+sha512sums=('61450abdc62402d04f0e8344b1477d9236f764f693ee64653c52dee5fe939a71149cb7af06bcafdc9af251f3668cde22fe9da2d87672de28b603d1edb2ca6922')
+
+prepare(){
+ mkdir -p bin
+}
+
+build() {
+ BUILD_DATE="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" '+%Y-%m-%d %H:%M UTC')"
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-linkmode external -extldflags \"${LDFLAGS}\" -X \"main.Version=${pkgver}\" -X \"main.BuildTime=${BUILD_DATE}\"" \
+ -o bin ./cmd/...
+}
+
+check() {
+ go test -v ./...
+}
+
+package() {
+ for bin in step-awskms-init step-ca step-cloudkms-init step-yubikey-init; do
+ install -Dm755 "bin/$bin" "$pkgdir/usr/bin/$bin"
+ done
+}
More information about the arch-commits
mailing list