void-packages/srcpkgs/cloudflared/template

21 lines
861 B
Bash

# Template file for 'cloudflared'
pkgname=cloudflared
version=2023.2.1
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}\""
short_desc="Cloudflare Tunnel client"
maintainer="Elie ROUDNINSKI <xademax@gmail.com>"
license="Apache-2.0"
homepage="https://developers.cloudflare.com/argo-tunnel/"
changelog="https://raw.githubusercontent.com/cloudflare/cloudflared/master/CHANGES.md"
distfiles="https://github.com/cloudflare/cloudflared/archive/${version}.tar.gz"
checksum=468b0953eca6ab189859073067857062c91ed9adb18e12a43527e0dba3aa6409
broken="doesn't build with go 1.20 due to an old custom version of quic-go https://github.com/cloudflare/cloudflared/issues/888"
pre_build() {
go_ldflags+=" -X \"main.BuildTime=$(date -u '+%Y-%m-%d-%H:%M UTC')\""
}