+defenseunicorns.com/zarf (#4935)

* init package definition for zarf

Signed-off-by: razzle <harry@razzle.cloud>

* comments for clarity

Signed-off-by: razzle <harry@razzle.cloud>

* build from source

Signed-off-by: razzle <harry@razzle.cloud>

* handle platform binary names

Signed-off-by: razzle <harry@razzle.cloud>

* visual simplify

* screwed up re-order

* rename per github

---------

Signed-off-by: razzle <harry@razzle.cloud>
Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
razzle 2024-01-22 16:41:35 -06:00 committed by GitHub
parent 1b8dbc9123
commit 5350003189
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,36 @@
distributable:
url: https://codeload.github.com/defenseunicorns/zarf/tar.gz/refs/tags/v{{version}}
strip-components: 1
display-name: zarf
versions:
github: defenseunicorns/zarf
build:
dependencies:
go.dev: '*'
env:
darwin/aarch64:
PLATFORM: mac-apple
BIN: zarf-mac-apple
darwin/x86-64:
PLATFORM: mac-intel
BIN: zarf-mac-intel
linux/aarch64:
PLATFORM: linux-arm
BIN: zarf-arm
linux/x86-64:
PLATFORM: linux-amd
BIN: zarf
script:
- make CLI_VERSION=v{{version}} build-cli-${PLATFORM}
- mkdir -p {{prefix}}/bin
- chmod +x build/$BIN
- mv build/$BIN '{{prefix}}'/bin/zarf
skip: fix-patchelf
provides:
- bin/zarf
test: test "$(zarf version)" = "v{{version}}"