3dc78812f1
* Update apt * Update bat * Update caddy * Update clash * Update croc * Update dar * Update exiftool * Update ffsend * Update delve * Update imagemagick * Update libxml2 * Update micro * Update mime-support * Update notmuch
24 lines
788 B
Bash
24 lines
788 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_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=2.4.1
|
|
TERMUX_PKG_SRCURL=https://github.com/caddyserver/caddy/archive/v$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=60850f68c76043ad9581cb11de9eaeb35816b521301e61940f9c98d3f62f0650
|
|
|
|
termux_step_make() {
|
|
termux_setup_golang
|
|
export GOPATH=$TERMUX_PKG_BUILDDIR
|
|
|
|
mkdir -p $GOPATH/src/github.com/caddyserver/
|
|
cp -a $TERMUX_PKG_SRCDIR $GOPATH/src/github.com/caddyserver/caddy
|
|
|
|
cd $GOPATH/src/github.com/caddyserver/caddy/cmd/caddy
|
|
export GO111MODULE=on
|
|
go build -v .
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 -t $TERMUX_PREFIX/bin $GOPATH/src/github.com/caddyserver/caddy/cmd/caddy/caddy
|
|
}
|