2021-06-03 14:09:08 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
2015-07-15 00:46:50 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - patch to fix AArch64 build
|
|
|
|
|
|
|
|
pkgname=webrtc-audio-processing
|
2018-07-25 13:43:10 +00:00
|
|
|
pkgver=0.3.1
|
2024-07-14 02:54:57 +00:00
|
|
|
pkgrel=5
|
2015-07-15 00:46:50 +00:00
|
|
|
pkgdesc="AudioProcessing library based on Google's implementation of WebRTC"
|
2017-01-27 00:48:39 +00:00
|
|
|
url="https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/"
|
2018-07-25 13:43:10 +00:00
|
|
|
arch=(x86_64)
|
2015-07-15 00:46:50 +00:00
|
|
|
license=(custom)
|
|
|
|
depends=(gcc-libs)
|
2017-01-27 00:48:39 +00:00
|
|
|
makedepends=(git)
|
2021-06-03 14:09:08 +00:00
|
|
|
provides=(libwebrtc_audio_processing.so)
|
2018-07-25 13:43:10 +00:00
|
|
|
_commit=e882a5442ac22c93648e12837248d651d18b9247 # tags/v0.3.1^0
|
2021-06-03 14:09:08 +00:00
|
|
|
source=("git+https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing.git#commit=$_commit"
|
2015-07-15 00:46:50 +00:00
|
|
|
'webrtc-fix-typedefs-on-other-arches.patch')
|
2023-08-13 03:03:00 +00:00
|
|
|
b2sums=('SKIP'
|
|
|
|
'dd71fc3117ce1e1ead2ce1af21177ea5ca139bc6ba285a252d1f83de497ff685ba73c315a65f1fb315740d5d5dd5a99ad61db6cbff5cff5349709ea39d61bc09')
|
2015-07-15 00:46:50 +00:00
|
|
|
|
2017-01-27 00:48:39 +00:00
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
2023-08-13 03:03:00 +00:00
|
|
|
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
|
2017-01-27 00:48:39 +00:00
|
|
|
}
|
|
|
|
|
2015-07-15 00:46:50 +00:00
|
|
|
prepare() {
|
2017-01-27 00:48:39 +00:00
|
|
|
cd $pkgname
|
2015-07-15 00:46:50 +00:00
|
|
|
patch -p1 -i ../webrtc-fix-typedefs-on-other-arches.patch
|
2017-01-27 00:48:39 +00:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2015-07-15 00:46:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2023-08-13 03:03:00 +00:00
|
|
|
local configure_options=(
|
|
|
|
--prefix /usr
|
|
|
|
--disable-static
|
|
|
|
)
|
|
|
|
|
2017-01-27 00:48:39 +00:00
|
|
|
cd $pkgname
|
2023-08-13 03:03:00 +00:00
|
|
|
./configure "${configure_options[@]}"
|
2021-06-03 14:09:08 +00:00
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
2015-07-15 00:46:50 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2021-06-03 14:09:08 +00:00
|
|
|
check() {
|
|
|
|
cd $pkgname
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
2015-07-15 00:46:50 +00:00
|
|
|
package() {
|
2017-01-27 00:48:39 +00:00
|
|
|
cd $pkgname
|
2015-07-15 00:46:50 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
2021-06-03 14:09:08 +00:00
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
|
2015-07-15 00:46:50 +00:00
|
|
|
}
|
2021-06-03 14:09:08 +00:00
|
|
|
|
2023-08-13 03:03:00 +00:00
|
|
|
# vim:set sw=2 sts=-1 et:
|