23 lines
698 B
Bash
23 lines
698 B
Bash
TERMUX_PKG_HOMEPAGE=https://caddyserver.com/
|
|
TERMUX_PKG_DESCRIPTION="Fast, cross-platform HTTP/2 web server"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_VERSION=0.11.3
|
|
TERMUX_PKG_SHA256=b99973614b85f55da309cdf79e5d6c9aae8ad1bd83c425b1f1fd17b21386eab6
|
|
TERMUX_PKG_SRCURL=https://github.com/mholt/caddy/archive/v$TERMUX_PKG_VERSION.tar.gz
|
|
|
|
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
|
|
go build
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 $GOPATH/src/github.com/mholt/caddy/caddy/caddy \
|
|
$TERMUX_PREFIX/bin/caddy
|
|
}
|