40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'spreed-webrtc'
|
|
pkgname=spreed-webrtc
|
|
version=0.29.7
|
|
revision=12
|
|
build_style=go
|
|
go_import_path="github.com/strukturag/spreed-webrtc"
|
|
go_package="${go_import_path}/src/app/spreed-webrtc-server"
|
|
go_mod_mode=off
|
|
hostmakedepends="automake nodejs git which go1.20"
|
|
conf_files="/etc/spreed/webrtc.conf"
|
|
short_desc="WebRTC audio/video call and conferencing server and web client"
|
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
|
license="AGPL-3.0-or-later"
|
|
homepage="https://github.com/strukturag/spreed-webrtc"
|
|
distfiles="https://github.com/strukturag/spreed-webrtc/archive/v${version}.tar.gz"
|
|
checksum=d05b820fe3883840eadf8b96bda663397991849d9bda4750fc7c4e642c9c3268
|
|
|
|
system_accounts="_spreed_webrtc"
|
|
export GOTOOLCHAIN=go1.20
|
|
|
|
broken="GOTOOLCHAIN not supported"
|
|
|
|
pre_build() {
|
|
./autogen.sh
|
|
./configure ${configure_args}
|
|
make assets
|
|
}
|
|
|
|
post_install() {
|
|
vsconf server.conf.in
|
|
vmkdir etc/spreed 755
|
|
vinstall server.conf.in 644 etc/spreed webrtc.conf # Match Ubuntu packaging and thus online docs
|
|
vlicense LICENSE
|
|
|
|
export SHARE=/usr/share/spreed-webrtc-server
|
|
make DESTDIR="${DESTDIR}" install-assets
|
|
|
|
vsv spreed-webrtc-server
|
|
}
|