mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
parent
4ef8ac05b7
commit
89fa4af3c6
1 changed files with 23 additions and 0 deletions
23
projects/github.com/cpuguy83/package.yml
Normal file
23
projects/github.com/cpuguy83/package.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/cpuguy83/go-md2man/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: cpuguy83/go-md2man/releases/tags
|
||||||
|
strip: /^v/
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/go-md2man
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.19
|
||||||
|
script: |
|
||||||
|
go build -ldflags="-s -w" -o bin/go-md2man
|
||||||
|
mkdir -p "{{ prefix }}"/bin
|
||||||
|
mv bin/go-md2man "{{ prefix }}"/bin
|
||||||
|
|
||||||
|
test: |
|
||||||
|
echo '# manpage\nand a half\n' > input.md
|
||||||
|
go-md2man -in input.md -out output.man
|
||||||
|
grep ".TH manpage" output.man
|
Loading…
Reference in a new issue