spreed-webrtc: build for go1.20

This commit is contained in:
Đoàn Trần Công Danh 2023-08-24 21:03:53 +07:00
parent 6b5d0be6c2
commit dd44c74ac5

View file

@ -1,12 +1,12 @@
# Template file for 'spreed-webrtc' # Template file for 'spreed-webrtc'
pkgname=spreed-webrtc pkgname=spreed-webrtc
version=0.29.7 version=0.29.7
revision=11 revision=12
build_style=go build_style=go
go_import_path="github.com/strukturag/spreed-webrtc" go_import_path="github.com/strukturag/spreed-webrtc"
go_package="${go_import_path}/src/app/spreed-webrtc-server" go_package="${go_import_path}/src/app/spreed-webrtc-server"
go_mod_mode=off go_mod_mode=off
hostmakedepends="automake nodejs git which" hostmakedepends="automake nodejs git which go1.20"
conf_files="/etc/spreed/webrtc.conf" conf_files="/etc/spreed/webrtc.conf"
short_desc="WebRTC audio/video call and conferencing server and web client" short_desc="WebRTC audio/video call and conferencing server and web client"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>" maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
@ -16,11 +16,11 @@ distfiles="https://github.com/strukturag/spreed-webrtc/archive/v${version}.tar.g
checksum=d05b820fe3883840eadf8b96bda663397991849d9bda4750fc7c4e642c9c3268 checksum=d05b820fe3883840eadf8b96bda663397991849d9bda4750fc7c4e642c9c3268
system_accounts="_spreed_webrtc" system_accounts="_spreed_webrtc"
export GOTOOLCHAIN=go1.20
broken="GOTOOLCHAIN not supported" broken="GOTOOLCHAIN not supported"
pre_build() { pre_build() {
export GOTOOLCHAIN="go1.26"
./autogen.sh ./autogen.sh
./configure ${configure_args} ./configure ${configure_args}
make assets make assets