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"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-04-25 20:23:49 +02:00
|
|
|
TERMUX_PKG_VERSION="2.5.0"
|
2020-12-24 12:46:49 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/caddyserver/caddy/archive/v$TERMUX_PKG_VERSION.tar.gz
|
2022-04-25 20:23:49 +02:00
|
|
|
TERMUX_PKG_SHA256=65b050af067dba4ff28d10dede5973a70474e7a7fc89ad8d7bc353f7c022732f
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2019-01-18 17:28:24 +01:00
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_golang
|
|
|
|
export GOPATH=$TERMUX_PKG_BUILDDIR
|
|
|
|
|
2020-12-24 12:46:49 +01:00
|
|
|
mkdir -p $GOPATH/src/github.com/caddyserver/
|
|
|
|
cp -a $TERMUX_PKG_SRCDIR $GOPATH/src/github.com/caddyserver/caddy
|
2019-01-18 17:28:24 +01:00
|
|
|
|
2020-12-24 12:46:49 +01:00
|
|
|
cd $GOPATH/src/github.com/caddyserver/caddy/cmd/caddy
|
2019-04-26 23:37:59 +02:00
|
|
|
export GO111MODULE=on
|
2020-05-11 22:21:58 +02:00
|
|
|
go build -v .
|
2019-01-18 17:28:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
2020-12-24 12:46:49 +01:00
|
|
|
install -Dm700 -t $TERMUX_PREFIX/bin $GOPATH/src/github.com/caddyserver/caddy/cmd/caddy/caddy
|
2019-01-18 17:28:24 +01:00
|
|
|
}
|