coturn: update to 4.5.1.0

Fix cross-build
This commit is contained in:
Nathan Owens 2019-01-29 21:52:07 -06:00 committed by Toyam Cox
parent c23b855810
commit be2568aee6
1 changed files with 14 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'coturn'
pkgname=coturn
version=4.5.0.8
revision=2
version=4.5.1.0
revision=1
build_style=gnu-configure
conf_files="/etc/turnserver.conf"
makedepends="libressl-devel libevent-devel hiredis-devel sqlite-devel
@ -11,12 +11,22 @@ maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/coturn/coturn"
distfiles="https://github.com/coturn/coturn/archive/${version}.tar.gz"
checksum=330c4dc55eef8d5f5d918a68122899395f2fa63821bc5493e1e2971355857e20
nocross="https://travis-ci.org/Vaelatern/void-packages/jobs/282547640"
checksum=9cf6b19ef37104801c412963bc7a6256d43e1016f527aef240a6a872e7c2d227
pre_build() {
# configure script does not like /usr when cross-building
if [ "$CROSS_BUILD" ]; then
LOCALSTATEDIR=/var ./configure --prefix=/tmp --confdir=/etc
sed -i 's:\${MANPREFIX}:/tmp/share:' Makefile
fi
}
system_accounts="_coturn"
post_install() {
if [ "$CROSS_BUILD" ]; then
mv ${DESTDIR}/tmp ${DESTDIR}/usr
fi
vlicense LICENSE
vsv coturnserver
vsconf examples/etc/turnserver.conf