mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 12:35:10 +03:00
37 lines
1 KiB
YAML
37 lines
1 KiB
YAML
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
|
|
ignore: /-rc\d+$/
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/make: '*'
|
|
tea.xyz/gx/cc: c99
|
|
go.dev: 1
|
|
gnu.org/patch: '*'
|
|
script: |
|
|
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
|
|
mkdir -p {{prefix}}/bin
|
|
mv cmd/ipfs/ipfs {{prefix}}/bin
|
|
|
|
test:
|
|
script:
|
|
ipfs init
|
|
env:
|
|
# This keeps the test from polluting the user's home directory (and causing a later,
|
|
# presumably intentional, `ipfs init` from erroring).
|
|
IPFS_PATH: .
|
|
|
|
provides:
|
|
- bin/ipfs
|