void-packages/srcpkgs/cloudflared/template

20 lines
732 B
Bash

# Template file for 'cloudflared'
pkgname=cloudflared
version=2022.8.2
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=45ff0c9b95997e2f1795b08af5c3ed2fc19d2d3cb35391c01452163003b858a1
pre_build() {
go_ldflags+=" -X \"main.BuildTime=$(date -u '+%Y-%m-%d-%H:%M UTC')\""
}