2022-03-06 01:09:07 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/cloudflare/cloudflared
|
|
|
|
TERMUX_PKG_DESCRIPTION="A tunneling daemon that proxies traffic from the Cloudflare network to your origins"
|
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-04-12 20:14:02 +02:00
|
|
|
TERMUX_PKG_VERSION="2022.4.1"
|
2022-03-06 01:09:07 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/cloudflare/cloudflared/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
|
2022-04-12 20:14:02 +02:00
|
|
|
TERMUX_PKG_SHA256=2e837dbe6f73d4ca60bc0ce56cba0f3c868b8d6f139bd8c06301b996d8e803ad
|
2022-03-18 20:30:34 +01:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2022-03-06 01:09:07 +01:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_golang
|
|
|
|
|
2022-03-18 04:55:49 +01:00
|
|
|
local _DATE=$(date -u '+%Y.%m.%d-%H:%M UTC')
|
2022-03-18 20:30:34 +01:00
|
|
|
go build -v -ldflags "-X \"main.Version=$TERMUX_PKG_VERSION\" -X \"main.BuildTime=$_DATE\"" \
|
2022-03-06 01:09:07 +01:00
|
|
|
./cmd/cloudflared
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm700 -t $TERMUX_PREFIX/bin cloudflared
|
|
|
|
}
|