extra/webrtc-audio-processing to 0.3.1-3

This commit is contained in:
Kevin Mihelich 2021-06-03 14:09:08 +00:00
parent e73823751a
commit 57aaf26b72

View file

@ -1,4 +1,4 @@
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix AArch64 build
@ -6,15 +6,16 @@
pkgname=webrtc-audio-processing
pkgver=0.3.1
pkgrel=2
pkgrel=3
pkgdesc="AudioProcessing library based on Google's implementation of WebRTC"
url="https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/"
arch=(x86_64)
license=(custom)
depends=(gcc-libs)
makedepends=(git)
provides=(libwebrtc_audio_processing.so)
_commit=e882a5442ac22c93648e12837248d651d18b9247 # tags/v0.3.1^0
source=("git+https://anongit.freedesktop.org/git/pulseaudio/webrtc-audio-processing#commit=$_commit"
source=("git+https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing.git#commit=$_commit"
'webrtc-fix-typedefs-on-other-arches.patch')
sha256sums=('SKIP'
'98ba3bcf8fc11c9c76eb707ee81a3ab668f10ad8cc4915deb842a3032557d15f')
@ -34,12 +35,20 @@ build() {
cd $pkgname
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon"
./configure --prefix=/usr --disable-static $CONFIG
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd $pkgname
make check
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
}
# vim:set sw=2 et: