2022-10-18 17:02:17 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/ipfs/kubo/releases/download/v{{version}}/kubo-source.tar.gz
|
|
|
|
checksum: https://github.com/ipfs/kubo/releases/download/v{{version}}/kubo-source.tar.gz.sha512
|
|
|
|
cid: https://github.com/ipfs/kubo/releases/download/v{{version}}/kubo-source.tar.gz.cid
|
|
|
|
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: '*'
|
2023-04-14 01:03:47 +03:00
|
|
|
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
|
2023-04-14 01:03:47 +03:00
|
|
|
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
|