From 5805cf21f3890fcefb9739ac807310654d999e0c Mon Sep 17 00:00:00 2001 From: Bas Steins Date: Thu, 26 Sep 2024 12:47:56 +0200 Subject: [PATCH] +smallstep.com/certificates --- .../smallstep.com/certificates/package.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 projects/smallstep.com/certificates/package.yml diff --git a/projects/smallstep.com/certificates/package.yml b/projects/smallstep.com/certificates/package.yml new file mode 100644 index 0000000000..39e53959d4 --- /dev/null +++ b/projects/smallstep.com/certificates/package.yml @@ -0,0 +1,34 @@ +# vendored +# distributable: +# url: git+https://github.com/smallstep/certificates +# ref: v{{version}} + +warnings: + - vendored + +versions: + github: smallstep/certificates/tags + strip: /^v/ + +provides: + - bin/step-ca + +build: + dependencies: + curl.se: '*' + gnu.org/tar: '*' + working-directory: ${{prefix}}/bin + script: + - curl -L "https://github.com/smallstep/certificates/releases/download/{{version.tag}}/step-ca_${PLATFORM}_${ARCH}.tar.gz" | tar zxf - + - mv step-ca_${PLATFORM}_${ARCH}/step-ca step-ca + - rm -rf step-ca_${PLATFORM}_${ARCH} + env: + CGO_ENABLED: 0 + darwin/aarch64: {PLATFORM: darwin, ARCH: arm64} + darwin/x86-64: {PLATFORM: darwin, ARCH: amd64} + linux/aarch64: {PLATFORM: linux, ARCH: arm64} + linux/x86-64: {PLATFORM: linux, ARCH: amd64} + +test: + script: + - step-ca version | grep -q {{version}}