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

40 lines
1.1 KiB
Bash

# Template file for 'webrtc-audio-processing'
pkgname=webrtc-audio-processing
version=0.3
revision=3
build_style=gnu-configure
patch_args="-p1"
short_desc="AudioProcessing library based on Google's implementation of WebRTC"
hostmakedepends="automake libtool"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="BSD"
homepage="http://freedesktop.org/software/pulseaudio/webrtc-audio-processing"
distfiles="${homepage}/${pkgname}-${version}.tar.xz"
checksum=756e291d4f557d88cd50c4fe3b8454ec238362d22cedb3e6173240d90f0a80fa
case "$XBPS_TARGET_MACHINE" in
# Disable neon for the arm* architectures
arm*) configure_args+=" --enable-neon=no"
esac
pre_configure() {
# Remove failing statement PKG_CHECK_MODULE(GNUSTL, gnustl)
sed -i configure.ac -e'/if test "x$with_gnustl" != "xno"; then/,+2d'
autoreconf -fi
}
post_install() {
vlicense COPYING
}
webrtc-audio-processing-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}