caddy: fix build.sh

This commit is contained in:
Leonid Pliushch 2020-05-11 23:21:58 +03:00
parent cf2088b942
commit 1c7e4ba113

View File

@ -12,12 +12,11 @@ termux_step_make() {
mkdir -p $GOPATH/src/github.com/mholt/
cp -a $TERMUX_PKG_SRCDIR $GOPATH/src/github.com/mholt/caddy
cd $GOPATH/src/github.com/mholt/caddy/caddy
cd $GOPATH/src/github.com/mholt/caddy/cmd/caddy
export GO111MODULE=on
go build
go build -v .
}
termux_step_make_install() {
install -Dm700 $GOPATH/src/github.com/mholt/caddy/caddy/caddy \
$TERMUX_PREFIX/bin/caddy
install -Dm700 -t $TERMUX_PREFIX/bin $GOPATH/src/github.com/mholt/caddy/cmd/caddy/caddy
}