From d00fa431e2ef51564429b5df5871cbb34b204212 Mon Sep 17 00:00:00 2001 From: Daniel Elsner Date: Wed, 9 Apr 2025 12:58:15 +0200 Subject: [PATCH 1/4] Add vexctl --- recipes/vexctl/recipe.yaml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 recipes/vexctl/recipe.yaml diff --git a/recipes/vexctl/recipe.yaml b/recipes/vexctl/recipe.yaml new file mode 100644 index 0000000000000..e4f7683b71c2c --- /dev/null +++ b/recipes/vexctl/recipe.yaml @@ -0,0 +1,42 @@ +context: + name: vexctl + version: "0.3.0" + +package: + name: ${{ name|lower }} + version: ${{ version }} + +source: + - url: https://github.com/openvex/${{ name }}/archive/refs/tags/v${{ version }}.tar.gz + sha256: 5a5904448ef1bf11bd8a165d737acc88afd9799618f6583c15cee5d99dd58e17 + target_directory: src + +build: + number: 0 + script: + - cd src + # alibabacloud-go/cr-20160607/ has no LICENSE as of version 1.0.1, but is Apache-2.0 licensed afterwards. + - go-licenses save ./ --save_path ../library_licenses --ignore github.com/openvex/vexctl --ignore github.com/alibabacloud-go/cr-20160607/client + - go build -v -trimpath -o $PREFIX/bin/vexctl ./main.go + +requirements: + build: + - ${{ compiler('go-nocgo') }} + - go-licenses + +tests: + - script: + - vexctl --help + +about: + homepage: https://github.com/openvex/vexctl + summary: A tool to create, transform and attest VEX metadata + license: Apache-2.0 + license_file: + - src/LICENSE + - library_licenses/ + repository: https://github.com/openvex/vexctl + +extra: + recipe-maintainers: + - delsner \ No newline at end of file From 02bac3e34063f9e5041e37e69272de75305b7839 Mon Sep 17 00:00:00 2001 From: Daniel Elsner Date: Wed, 9 Apr 2025 13:00:17 +0200 Subject: [PATCH 2/4] Fix --- recipes/vexctl/recipe.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/vexctl/recipe.yaml b/recipes/vexctl/recipe.yaml index e4f7683b71c2c..bee591ad835ab 100644 --- a/recipes/vexctl/recipe.yaml +++ b/recipes/vexctl/recipe.yaml @@ -15,7 +15,7 @@ build: number: 0 script: - cd src - # alibabacloud-go/cr-20160607/ has no LICENSE as of version 1.0.1, but is Apache-2.0 licensed afterwards. + # alibabacloud-go/cr-20160607/ has no LICENSE as of version 1.0.1, but is Apache-2.0 licensed. - go-licenses save ./ --save_path ../library_licenses --ignore github.com/openvex/vexctl --ignore github.com/alibabacloud-go/cr-20160607/client - go build -v -trimpath -o $PREFIX/bin/vexctl ./main.go From 24ba696d623e80872f228bd7461397054711dd4a Mon Sep 17 00:00:00 2001 From: Daniel Elsner Date: Wed, 9 Apr 2025 13:12:23 +0200 Subject: [PATCH 3/4] fix --- recipes/vexctl/recipe.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/vexctl/recipe.yaml b/recipes/vexctl/recipe.yaml index bee591ad835ab..a33275e0db2fd 100644 --- a/recipes/vexctl/recipe.yaml +++ b/recipes/vexctl/recipe.yaml @@ -22,6 +22,7 @@ build: requirements: build: - ${{ compiler('go-nocgo') }} + - ${{ stdlib('c') }} - go-licenses tests: @@ -39,4 +40,4 @@ about: extra: recipe-maintainers: - - delsner \ No newline at end of file + - delsner From 4b7e7350feb974ca1029fad8cdbc7898798a13be Mon Sep 17 00:00:00 2001 From: Daniel Elsner Date: Wed, 9 Apr 2025 13:14:02 +0200 Subject: [PATCH 4/4] Windows build --- recipes/vexctl/recipe.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/vexctl/recipe.yaml b/recipes/vexctl/recipe.yaml index a33275e0db2fd..0a384549712e1 100644 --- a/recipes/vexctl/recipe.yaml +++ b/recipes/vexctl/recipe.yaml @@ -17,7 +17,9 @@ build: - cd src # alibabacloud-go/cr-20160607/ has no LICENSE as of version 1.0.1, but is Apache-2.0 licensed. - go-licenses save ./ --save_path ../library_licenses --ignore github.com/openvex/vexctl --ignore github.com/alibabacloud-go/cr-20160607/client - - go build -v -trimpath -o $PREFIX/bin/vexctl ./main.go + - if: win + then: go install -v . + else: go build -v -trimpath -o $PREFIX/bin/vexctl ./main.go requirements: build: