diff --git a/projects/jfrog.com/jfrog-cli/package.yml b/projects/jfrog.com/jfrog-cli/package.yml new file mode 100644 index 00000000..3877e0f7 --- /dev/null +++ b/projects/jfrog.com/jfrog-cli/package.yml @@ -0,0 +1,33 @@ +distributable: + url: https://github.com/jfrog/jfrog-cli/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: jfrog/jfrog-cli + +platforms: + - darwin + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + go.dev: '*' + script: | + go build $ARGS + mkdir -p {{prefix}}/bin + mv ./bin/jf {{prefix}}/bin + ln -sf jf {{prefix}}/bin/jfrog + + env: + ARGS: + - -trimpath + - -o=bin/jf + +provides: + - bin/jf + - bin/jfrog + +test: | + jf -v | grep {{version}} + jfrog -v | grep {{version}}