void-packages/srcpkgs/webrtc-audio-processing/template

34 lines
1.1 KiB
Bash

# Template file for 'webrtc-audio-processing'
pkgname=webrtc-audio-processing
version=1.3
revision=1
build_style=meson
hostmakedepends="pkg-config"
makedepends="abseil-cpp-devel"
short_desc="AudioProcessing library based on Google's implementation of WebRTC"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://freedesktop.org/software/pulseaudio/webrtc-audio-processing"
distfiles="${FREEDESKTOP_SITE}/pulseaudio/webrtc-audio-processing/webrtc-audio-processing-${version}.tar.gz"
checksum=95552fc17faa0202133707bbb3727e8c2cf64d4266fe31bfdb2298d769c1db75
# Upstream issue: https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/issues/5
if [[ "$XBPS_TARGET_MACHINE" = "i686"* ]]; then
CXXFLAGS="-DPFFFT_SIMD_DISABLE=1"
CFLAGS="-DPFFFT_SIMD_DISABLE=1"
fi
post_install() {
vlicense COPYING
}
webrtc-audio-processing-devel_package() {
depends="${sourcepkg}>=${version}_${revision} abseil-cpp-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}