void-packages/srcpkgs/spreed-webrtc/template
2018-03-05 20:01:32 +00:00

34 lines
1 KiB
Bash

# Template file for 'spreed-webrtc'
pkgname=spreed-webrtc
version=0.29.7
revision=5
build_style=go
go_import_path="github.com/strukturag/spreed-webrtc"
go_package="${go_import_path}/src/app/spreed-webrtc-server"
hostmakedepends="automake nodejs git"
conf_files="/etc/spreed/webrtc.conf"
short_desc="WebRTC audio/video call and conferencing server and web client"
maintainer="Toyam Cox <Vaelatern@voidlinux.eu>"
license="AGPL-3"
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"
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
export SHARE=/usr/share/spreed-webrtc-server
make DESTDIR="${DESTDIR}" install-assets
vsv spreed-webrtc-server
}