37375312b9
In issue https://github.com/termux/termux-packages/issues/6160 I have found that community repo "its-pointless.github.io" specifies us as maintainer for its packages. This is NOT TRUE and potentially misleads people using these packages. Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral and not specify maintainer. So all packages now have to override it to the correct value. [skip ci] %ci:no-build
24 lines
758 B
Bash
24 lines
758 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.2.1
|
|
TERMUX_PKG_SRCURL=https://github.com/mholt/caddy/archive/v$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=dd1f313968a54c3e6be9b5d007b8b2ed88c46fbefc1eed49dcac35c08fbef1e2
|
|
|
|
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/cmd/caddy
|
|
export GO111MODULE=on
|
|
go build -v .
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 -t $TERMUX_PREFIX/bin $GOPATH/src/github.com/mholt/caddy/cmd/caddy/caddy
|
|
}
|