mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
ab2ea4ca88
financial dashboard on terminal
28 lines
No EOL
605 B
YAML
28 lines
No EOL
605 B
YAML
distributable:
|
|
url: https://github.com/mop-tracker/mop/archive/refs/heads/master.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
- 2023.03.30
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: '*'
|
|
gnu.org/patch: '*'
|
|
script: |
|
|
patch -p1 < props/add-version-flag.patch
|
|
go mod download
|
|
go build -ldflags="$LDFLAGS" -x -o ./bin/mop $PACKAGE
|
|
mkdir -p "{{ prefix }}"/bin
|
|
mv ./bin/mop "{{ prefix }}"/bin
|
|
chmod +rx "{{ prefix }}"/bin/mop
|
|
env:
|
|
LDFLAGS: "-X main.version={{version}}"
|
|
PACKAGE: ./cmd/mop
|
|
|
|
provides:
|
|
- bin/mop
|
|
|
|
test:
|
|
script: |
|
|
test "$(mop --version)" = "mop-{{version}}" |