Skip to content

Commit

Permalink
add recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnachun committed Oct 16, 2024
1 parent 8d19169 commit ad365f9
Show file tree
Hide file tree
Showing 15 changed files with 249 additions and 0 deletions.
8 changes: 8 additions & 0 deletions recipes/moar/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s -w -X main.versionString=%PKG_VERSION%" || goto :error
go-licenses save . --save_path=license-files || goto :error

goto :EOF

:error
echo Failed with error #%errorlevel%.
exit 1
8 changes: 8 additions & 0 deletions recipes/moar/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -o xtrace -o nounset -o pipefail -o errexit

go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w -X main.versionString=${PKG_VERSION}"
go-licenses save . --save_path=license-files
mkdir -p ${PREFIX}/share/man/man1
install -m 644 ${PKG_NAME}.1 ${PREFIX}/share/man/man1/${PKG_NAME}.1
35 changes: 35 additions & 0 deletions recipes/moar/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% set name = "moar" %}
{% set version = "1.23.15" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/walles/moar/archive/v{{ version }}.tar.gz
sha256: d2edfc143eb3c71ea1ce51753b60da19f907013a16649ff81cd42cb7e3b3835b

build:
number: 0

requirements:
build:
- {{ compiler('go-nocgo') }}
- go-licenses

test:
commands:
- moar --help

about:
home: https://github.com/walles/moar
license: BSD-2-Clause
license_file:
- LICENSE
- license-files/
summary: Nice to use pager for humans
dev_url: https://github.com/walles/moar

extra:
recipe-maintainers:
- danielnachun
8 changes: 8 additions & 0 deletions recipes/opa/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error
go-licenses save . --save_path=license-files || goto :error

goto :EOF

:error
echo Failed with error #%errorlevel%.
exit 1
6 changes: 6 additions & 0 deletions recipes/opa/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -o xtrace -o nounset -o pipefail -o errexit

go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w"
go-licenses save . --save_path=license-files
35 changes: 35 additions & 0 deletions recipes/opa/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% set name = "opa" %}
{% set version = "0.68.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/open-policy-agent/opa/archive/v{{ version }}.tar.gz
sha256: 5c7f985b70d69f208af12d14c2d73ef802ec8fdb6025795f94f1edd9ced82033

build:
number: 0

requirements:
build:
- {{ compiler('go-nocgo') }}
- go-licenses

test:
commands:
- opa --help

about:
home: https://github.com/open-policy-agent/opa
license: Apache-2.0
license_file:
- LICENSE
- license-files/
summary: Open Policy Agent (OPA) is an open source, general-purpose policy engine.
dev_url: https://github.com/open-policy-agent/opa

extra:
recipe-maintainers:
- danielnachun
8 changes: 8 additions & 0 deletions recipes/pdfcpu/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s -X github.com/pdfcpu/pdfcpu/pkg/pdfcpu.VersionStr=%PKG_VERSION%" .\cmd\pdfcpu || goto :error
go-licenses save .\cmd\pdfcpu --save_path=license-files || goto :error

goto :EOF

:error
echo Failed with error #%errorlevel%.
exit 1
6 changes: 6 additions & 0 deletions recipes/pdfcpu/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -o xtrace -o nounset -o pipefail -o errexit

go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w -X github.com/pdfcpu/pdfcpu/pkg/pdfcpu.VersionStr=${PKG_VERSION}" .\cmd\pdfcpu
go-licenses save ./cmd/pdfcpu --save_path=license-files
35 changes: 35 additions & 0 deletions recipes/pdfcpu/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% set name = "pdfcpu" %}
{% set version = "0.8.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/pdfcpu/pdfcpu/archive/v{{ version }}.tar.gz
sha256: 38fa9db4e6d2ad1dfe533acd26c12a56b5940ae3ec4d57fee927b6bc9d223359

build:
number: 0

requirements:
build:
- {{ compiler('go-nocgo') }}
- go-licenses

test:
commands:
- pdfcpu help

about:
home: https://github.com/pdfcpu/pdfcpu
license: Apache-2.0
license_file:
- LICENSE.txt
- license-files/
summary: PDF processor written in Go
dev_url: https://github.com/pdfcpu/pdfcpu

extra:
recipe-maintainers:
- danielnachun
8 changes: 8 additions & 0 deletions recipes/peco/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" .\cmd\%PKG_NAME% || goto :error
go-licenses save .\cmd\%PKG_NAME% --save_path=license-files || goto :error

goto :EOF

:error
echo Failed with #%errorlevel%.
exit 1
6 changes: 6 additions & 0 deletions recipes/peco/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -o xtrace -o nounset -o pipefail -o errexit

go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" ./cmd/${PKG_NAME}
go-licenses save ./cmd/${PKG_NAME} --save_path=license-files
35 changes: 35 additions & 0 deletions recipes/peco/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% set name = "peco" %}
{% set version = "0.5.11" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/peco/peco/archive/v{{ version }}.tar.gz
sha256: 8e32c8af533e03795f27feb4ee134960611d2fc0266528b1c512a6f1f065b164

build:
number: 0

requirements:
build:
- {{ compiler('go-nocgo') }}
- go-licenses

test:
commands:
- peco --help

about:
home: https://github.com/peco/peco
license: MIT
license_file:
- LICENSE
- license-files/
summary: Simplistic interactive filtering tool
dev_url: https://github.com/peco/peco

extra:
recipe-maintainers:
- danielnachun
9 changes: 9 additions & 0 deletions recipes/please/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\plz.exe -ldflags="-s" .\src\please.go || goto :error
mklink . .\src\please.go || goto :error
go-licenses save . --save_path=license-files || goto :error

goto :EOF

:error
echo Failed with error #%errorlevel%.
exit 1
7 changes: 7 additions & 0 deletions recipes/please/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -o xtrace -o nounset -o pipefail -o errexit

go build -buildmode=pie -trimpath -o=${PREFIX}/bin/plz -ldflags="-s -w" ./src/please.go
ln -sf ./src/please.go
go-licenses save . --save_path=license-files
35 changes: 35 additions & 0 deletions recipes/please/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% set name = "please" %}
{% set version = "17.11.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/thought-machine/please/archive/v{{ version }}.tar.gz
sha256: 990150b546e997b42ddbf3efae6edb9e562e8261b0853c103e1d1880b6699036

build:
number: 0

requirements:
build:
- {{ compiler('go-nocgo') }}
- go-licenses

test:
commands:
- plz --help

about:
home: https://github.com/thought-machine/please
license: Apache-2.0
license_file:
- LICENSE
- license-files/
summary: High-performance extensible build system for reproducible multi-language builds.
dev_url: https://github.com/thought-machine/please

extra:
recipe-maintainers:
- danielnachun

0 comments on commit ad365f9

Please sign in to comment.