From 7b55400ae5ba0d2a603c9ce5ed5586250fca5f1b Mon Sep 17 00:00:00 2001 From: Zadkiel Aharonian Date: Mon, 9 Oct 2023 22:27:37 +0200 Subject: [PATCH] gitlab.com/greut/eclint (#3584) * gitlab.com/greut/eclint * gitlab.com/greut/eclint --- projects/gitlab.com/greut/eclint/package.yml | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/gitlab.com/greut/eclint/package.yml diff --git a/projects/gitlab.com/greut/eclint/package.yml b/projects/gitlab.com/greut/eclint/package.yml new file mode 100644 index 00000000..875096ad --- /dev/null +++ b/projects/gitlab.com/greut/eclint/package.yml @@ -0,0 +1,27 @@ +distributable: + url: https://gitlab.com/greut/eclint/-/archive/v{{version}}/eclint-v{{version}}.tar.gz + strip-components: 1 + +versions: + gitlab: greut/eclint + +build: + dependencies: + go.dev: '*' + script: + - go mod download + - mkdir -p {{prefix}}/bin + - go build -trimpath -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/eclint ./cmd/eclint + env: + LDFLAGS: + - -s + - -w + - -X main.version=v{{version}} + CGO_ENABLED: 0 + +provides: + - bin/eclint + +test: + script: + - eclint -version | grep "v{{version}}"