3 export CGO_LDFLAGS
="$LDFLAGS"
4 export CGO_CFLAGS
="$CFLAGS"
5 export CGO_CPPFLAGS
="$CPPFLAGS"
6 export CGO_CXXFLAGS
="$CXXFLAGS"
7 export GOFLAGS
="$GOFLAGS -buildmode=pie -trimpath -modcacherw -mod=vendor"
11 install -Dm755 cmd
/ipfs
/ipfs
"$1/usr/bin/ipfs"
12 install -Dm755 ipfs.run
"$1/etc/sv/ipfs/run"
14 ln -s /run
/runit
/supervise.ipfs
"$1/etc/sv/ipfs/supervise"