aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/spreed-webrtc/template
blob: 4a17b5474f939a6429e9cd4b7b9b507ec247b98c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Template file for 'spreed-webrtc'
pkgname=spreed-webrtc
version=0.29.7
revision=13
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
}