mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+invoice
This commit is contained in:
parent
7bada74168
commit
5c9896041d
1 changed files with 32 additions and 0 deletions
32
projects/github.com/maaslalani/invoice/package.yml
Normal file
32
projects/github.com/maaslalani/invoice/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
distributable:
|
||||
url: https://github.com/maaslalani/invoice/archive/refs/tags/{{version.tag}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: maaslalani/invoice
|
||||
|
||||
provides:
|
||||
- bin/invoice
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.20
|
||||
script:
|
||||
- go mod download
|
||||
- go build -v -trimpath -ldflags="$GO_LDFLAGS" -o '{{prefix}}/bin/invoice' .
|
||||
env:
|
||||
GO_LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
linux:
|
||||
# or segmentation fault
|
||||
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||
GO_LDFLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
test:
|
||||
- invoice generate --from "Dream, Inc." --to "Imagine, Inc."
|
||||
--item "Rubber Duck" --quantity 2 --rate 25
|
||||
--tax 0.13 --discount 0.15
|
||||
--note "For debugging purposes"
|
||||
- test -s invoice.pdf
|
Loading…
Reference in a new issue