From b577500f9f141bc594caa126affa86b84005dd94 Mon Sep 17 00:00:00 2001 From: ArionThinker Date: Thu, 22 Jun 2023 16:20:48 +0300 Subject: [PATCH] new file: projects/github.com/mitchellh/gox/package.yml --- projects/github.com/mitchellh/gox/package.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 projects/github.com/mitchellh/gox/package.yml diff --git a/projects/github.com/mitchellh/gox/package.yml b/projects/github.com/mitchellh/gox/package.yml new file mode 100644 index 00000000..ba7df7b2 --- /dev/null +++ b/projects/github.com/mitchellh/gox/package.yml @@ -0,0 +1,35 @@ +distributable: + url: https://github.com/mitchellh/gox/archive/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: mitchellh/gox/tags + +dependencies: + go.dev: '*' + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + script: go build $ARGS + env: + ARGS: + - -trimpath + - -o={{prefix}}/bin/gox + +provides: + - bin/gox + +test: + env: + GO111MODULE: "auto" + dependencies: + gnu.org/wget: '*' + go.dev: '*' + script: + - wget https://github.com/allaboutapps/go-starter/archive/go-starter-2023-05-03.tar.gz + - tar -xz -fgo-starter-2023-05-03.tar.gz + - cd ./go-starter-go-starter-2023-05-03 + - gox -arch amd64 -os darwin -os freebsd + - test -x ./go-starter_darwin_amd64 \ No newline at end of file