2019-01-18 17:28:24 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://caddyserver.com/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Fast, cross-platform HTTP/2 web server"
|
2019-01-20 22:39:59 +01:00
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
2019-07-07 12:51:45 +02:00
|
|
|
TERMUX_PKG_VERSION=1.0.1
|
2019-01-18 17:28:24 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/mholt/caddy/archive/v$TERMUX_PKG_VERSION.tar.gz
|
2019-07-07 12:51:45 +02:00
|
|
|
TERMUX_PKG_SHA256=7cbd80c798a0db4195381f730f5409680c6e1239fbc06295b90b34f666a05692
|
2019-01-18 17:28:24 +01:00
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_golang
|
|
|
|
export GOPATH=$TERMUX_PKG_BUILDDIR
|
|
|
|
|
|
|
|
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
|
2019-04-26 23:37:59 +02:00
|
|
|
export GO111MODULE=on
|
2019-01-18 17:28:24 +01:00
|
|
|
go build
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm700 $GOPATH/src/github.com/mholt/caddy/caddy/caddy \
|
|
|
|
$TERMUX_PREFIX/bin/caddy
|
|
|
|
}
|