pantry/projects/ipfs.tech/package.yml

35 lines
857 B
YAML
Raw Normal View History

2022-10-18 17:02:17 +03:00
distributable:
2023-08-15 23:24:26 +03:00
url: https://github.com/ipfs/kubo/archive/refs/tags/v{{version}}.tar.gz
2022-10-18 17:02:17 +03:00
strip-components: 1
versions:
github: ipfs/kubo
2023-01-05 04:06:12 +03:00
ignore: /-rc\d+$/
2022-10-18 17:02:17 +03:00
build:
dependencies:
tea.xyz/gx/make: '*'
go.dev: '>=1.18<1.20'
2023-01-24 00:46:39 +03:00
gnu.org/patch: '*'
2022-10-18 17:02:17 +03:00
script: |
2023-01-24 00:46:39 +03:00
if test "{{hw.platform}}" = "linux"; then
# Need to pass -buildmode=pie to the build
# or segmentation fault
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
patch -p1 <props/ldflags.diff
fi
make build CGO_ENABLED=0
2022-10-21 04:36:57 +03:00
mkdir -p {{prefix}}/bin
2022-10-18 17:02:17 +03:00
mv cmd/ipfs/ipfs {{prefix}}/bin
test:
2022-10-21 04:36:57 +03:00
script:
ipfs init
env:
2022-10-21 18:09:42 +03:00
# This keeps the test from polluting the user's home directory (and causing a later,
# presumably intentional, `ipfs init` from erroring).
2022-10-21 04:36:57 +03:00
IPFS_PATH: .
2022-12-05 22:10:34 +03:00
provides:
- bin/ipfs