# Template file for 'cloudflared'
pkgname=cloudflared
version=2026.7.3
revision=1
build_style=go
go_import_path=github.com/cloudflare/cloudflared
go_package="${go_import_path}/cmd/cloudflared"
go_ldflags="-X \"main.Version=${version}\""
make_check_args="-skip ^(TestFunnelIdleTimeout|TestReuseFunnel|TestICMPRouterEcho|TestTraceICMPRouterEcho|TestConcurrentRequestsToSameDst|TestICMPRouterRejectNotEcho|TestHTTP2ConfigurationSet|TestServeHTTP|TestServeWS|TestNoWriteAfterServeHTTPReturns|TestServeControlStream|TestFailRegistration|TestGracefulShutdownHTTP2|TestServeTCP_RateLimited|TestSupportedCurvesNegotiation)$"
hostmakedepends="go"
short_desc="Cloudflare Tunnel client"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://developers.cloudflare.com/argo-tunnel/"
changelog="https://github.com/cloudflare/cloudflared/raw/refs/heads/master/RELEASE_NOTES"
distfiles="https://github.com/cloudflare/cloudflared/archive/${version}.tar.gz"
checksum=8e452b1630064f5951e18a2537e66274e006eb2e83daa0d42a0adb3fab3ee788

pre_build() {
	go_ldflags+=" -X \"main.BuildTime=$(date -u '+%Y-%m-%d-%H:%M UTC')\""
}
