pantry/projects/zarf.dev/package.yml
razzle 5350003189
+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>
2024-01-22 17:41:35 -05:00

37 lines
758 B
YAML

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}}"