termux-packages/packages/caddy/build.sh
Leonid Pliushch 27afd9e665
auto updates: migrate config from github-projects.txt to build.sh-specific
Re-enable automatic updates after deleting github-projects.txt.

%ci:no-build
2021-10-04 13:43:31 +03:00

25 lines
816 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.5
TERMUX_PKG_SRCURL=https://github.com/caddyserver/caddy/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=f25a24dfd6398e02ed3e530621f800eb7c7496d302d0a86b6932c219e46320cd
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
}