pcre2: bump to 10.40
[kiss-trunc88.git] / go-ipfs / build
blob63eb7dedf46bc95a1178f81a608bced051e22275
1 #!/bin/sh -e
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"
9 make build
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"