From 4db62733d5bbbcea252c9828731dcf2dea7b0231 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 14 Nov 2023 14:04:58 -0500 Subject: [PATCH] +kaspad --- .../github.com/kaspanet/kaspad/package.yml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 projects/github.com/kaspanet/kaspad/package.yml diff --git a/projects/github.com/kaspanet/kaspad/package.yml b/projects/github.com/kaspanet/kaspad/package.yml new file mode 100644 index 00000000..7ad156bd --- /dev/null +++ b/projects/github.com/kaspanet/kaspad/package.yml @@ -0,0 +1,31 @@ +distributable: + url: https://github.com/kaspanet/kaspad/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: kaspanet/kaspad + strip: /^v/ + +build: + dependencies: + go.dev: ^1.18 + script: | + go install -ldflags="$LDFLAGS" . ./cmd/... + env: + GOBIN: "{{prefix}}/bin" + LDFLAGS: + - -X=main.Version=v{{version}} + linux: + LDFLAGS: + - -buildmode=pie + +provides: + - bin/genkeypair + - bin/kaspactl + - bin/kaspad + - bin/kaspaminer + - bin/kaspawallet + +test: + - kaspawallet show-addresses || true + - echo $(kaspawallet show-addresses 2>&1 || true) | grep "kaspawallet daemon is not running, start it with"