pcre2: bump to 10.40
[kiss-trunc88.git] / croc / build
blobdec7f312983255ac7393bfd13656080e754655da
1 #!/bin/sh -e
3 #sed 's/go c.broadcastOnLocalNetwork(true)/\/\/go c.broadcastOnLocalNetwork(true)/' src/croc/croc.go > _
4 #mv -f _ src/croc/croc.go
6 #export GOPATH="$PWD/go"
7 #export GO111MODULE=on
9 export CGO_CPPFLAGS="$CPPFLAGS"
10 export CGO_CFLAGS="$CFLAGS"
11 export CGO_CXXFLAGS="$CXXFLAGS"
12 export CGO_LDFLAGS="$LDFLAGS"
13 export GOFLAGS="$GOFLAGS -buildmode=pie -trimpath -ldflags=-linkmode=external -mod=vendor -modcacherw"
15 go build
17 mkdir -p "$1/usr/bin"
18 cp croc "$1/usr/bin/"