mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-19 07:37:01 +02:00
v2ray: revbump for go 1.21
This commit is contained in:
parent
1fa00e2603
commit
9e7d33b86a
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'v2ray'
|
||||
pkgname=v2ray
|
||||
version=5.3.0
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=go
|
||||
go_import_path="github.com/v2fly/v2ray-core/v5"
|
||||
go_ldflags="-X github.com/v2fly/v2ray-core/v5.codename=$pkgname
|
||||
|
@ -20,6 +20,10 @@ system_accounts="_v2ray"
|
|||
export GOFLAGS="-x -p=$XBPS_MAKEJOBS -buildmode=pie -trimpath"
|
||||
export CGO_ENABLED=0
|
||||
|
||||
pre_build() {
|
||||
export GOTOOLCHAIN="go1.20.7"
|
||||
}
|
||||
|
||||
do_build() {
|
||||
go build -ldflags "${go_ldflags}" -o "${GOPATH}/bin/v2ray" ./main
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue