# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=roc-toolkit pkgver=0.2.4 pkgrel=0 pkgdesc="Real-time audio streaming over the network" url="https://roc-streaming.org/" arch="all" license="MPL-2.0" depends_dev=" libunwind-dev libuv-dev openssl-dev speexdsp-dev " makedepends=" $depends_dev cpputest gengetopt ragel scons " checkdepends=" python3 " subpackages="$pkgname-libs $pkgname-dev $pkgname-doc" source="https://github.com/roc-streaming/roc-toolkit/archive/v$pkgver/roc-toolkit-$pkgver.tar.gz" options="net" # Required for tests case "$CARCH" in arm*|x86) # fail on 32-bit # original: -0.999969, received: -0.993927 options="$options !check" esac _run_scons() { scons \ --prefix=/usr \ --with-libraries=/usr/lib \ --enable-tests \ --disable-sox \ --disable-openfec \ --disable-pulseaudio \ "$@" } build() { export CFLAGS="$CFLAGS -O2 -flto=auto" export CXXFLAGS="$CXXFLAGS -O2 -flto=auto" _run_scons } check() { _run_scons test } package() { export DESTDIR="$pkgdir" _run_scons install } sha512sums=" aed11c0e4187b81f5db2d797c1e5396ba7a71cb70cc362e3b562a8089242a04b4c20d68fc4dca37d74c063b61dd6b5b11c98ec31024c7d758f56f738f87db308 roc-toolkit-0.2.4.tar.gz "