mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
cloudflared: build for go1.20
This commit is contained in:
parent
9b4a220966
commit
8748e89183
1 changed files with 3 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
|||
# Template file for 'cloudflared'
|
||||
pkgname=cloudflared
|
||||
version=2023.5.1
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=go
|
||||
go_import_path=github.com/cloudflare/cloudflared
|
||||
go_package="${go_import_path}/cmd/cloudflared"
|
||||
go_ldflags="-X \"main.Version=${version}\""
|
||||
hostmakedepends="go1.20"
|
||||
short_desc="Cloudflare Tunnel client"
|
||||
maintainer="Elie ROUDNINSKI <xademax@gmail.com>"
|
||||
license="Apache-2.0"
|
||||
|
@ -13,10 +14,10 @@ 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=ee2c2a4b0c290c39475f79ab74972dfbce817df8e5090813cad0e58f33836194
|
||||
export GOTOOLCHAIN=go1.20
|
||||
|
||||
broken="GOTOOLCHAIN not supported"
|
||||
|
||||
pre_build() {
|
||||
go_ldflags+=" -X \"main.BuildTime=$(date -u '+%Y-%m-%d-%H:%M UTC')\""
|
||||
export GOTOOLCHAIN="go1.20.7"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue