extra/webrtc-audio-processing to 0.3-2

This commit is contained in:
Kevin Mihelich 2017-01-27 00:48:39 +00:00
parent 9495da8b70
commit 0a9b736433

View file

@ -7,31 +7,39 @@
pkgname=webrtc-audio-processing pkgname=webrtc-audio-processing
pkgver=0.3 pkgver=0.3
pkgrel=1 pkgrel=2
pkgdesc="AudioProcessing library based on Google's implementation of WebRTC" pkgdesc="AudioProcessing library based on Google's implementation of WebRTC"
url="http://freedesktop.org/software/pulseaudio/webrtc-audio-processing" url="https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/"
arch=(i686 x86_64) arch=(i686 x86_64)
license=(custom) license=(custom)
depends=(gcc-libs) depends=(gcc-libs)
source=("$url/$pkgname-$pkgver.tar.xz" makedepends=(git)
_commit=fc0e76139404e08cc5b8024daafa1ddf576a4e21 # tags/v0.3^0
source=("git+https://anongit.freedesktop.org/git/pulseaudio/webrtc-audio-processing#commit=$_commit"
'webrtc-fix-typedefs-on-other-arches.patch') 'webrtc-fix-typedefs-on-other-arches.patch')
sha256sums=('756e291d4f557d88cd50c4fe3b8454ec238362d22cedb3e6173240d90f0a80fa' sha256sums=('SKIP'
'98ba3bcf8fc11c9c76eb707ee81a3ab668f10ad8cc4915deb842a3032557d15f') '98ba3bcf8fc11c9c76eb707ee81a3ab668f10ad8cc4915deb842a3032557d15f')
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/+/g'
}
prepare() { prepare() {
cd $pkgname-$pkgver cd $pkgname
patch -p1 -i ../webrtc-fix-typedefs-on-other-arches.patch patch -p1 -i ../webrtc-fix-typedefs-on-other-arches.patch
NOCONFIGURE=1 ./autogen.sh
} }
build() { build() {
cd $pkgname-$pkgver cd $pkgname
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon" [[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon"
./configure --prefix=/usr --disable-static $CONFIG ./configure --prefix=/usr --disable-static $CONFIG
make make
} }
package() { package() {
cd $pkgname-$pkgver cd $pkgname
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"