mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 00:02:17 +01:00
66 lines
1.2 KiB
Plaintext
66 lines
1.2 KiB
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=roc-toolkit
|
|
pkgver=0.2.6
|
|
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="
|
|
ac0f18e8a8a60ae9e93f3dcb58e645f31440b6799dac063b246f5320978ac98192bb9c38bbfa7e38dbd537da169c1d525d93cf66c86b36976d37932e3c12f63b roc-toolkit-0.2.6.tar.gz
|
|
"
|