0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-13 03:00:31 +00:00
Termux Github Actions 94089f0e3f bump(main/caddy): 2.8.4
This commit has been automatically submitted by Github Actions.
2024-06-02 18:11:36 +00:00

25 lines
818 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.8.4"
TERMUX_PKG_SRCURL=https://github.com/caddyserver/caddy/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=5c2e95ad9e688a18dd9d9099c8c132331e01e0bebd401183e8d9123372cf4fcc
TERMUX_PKG_AUTO_UPDATE=true
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
}