From 2792f48386c39c85e8e3d669705116bbe58f3bf7 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Fri, 16 Jun 2023 19:23:18 +0300 Subject: [PATCH] jfrog.com/jfrog-cli (#2188) * new file: projects/jfrog.com/jfrog-cli/package.yml * symlink * test * modified: projects/jfrog.com/jfrog-cli/package.yml * clean up --------- Co-authored-by: Jacob Heider --- projects/jfrog.com/jfrog-cli/package.yml | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 projects/jfrog.com/jfrog-cli/package.yml 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}}