PKGBUILDs/extra/webrtc-audio-processing/PKGBUILD

47 lines
1.2 KiB
Bash
Raw Normal View History

2015-07-15 00:46:50 +00:00
# $Id$
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix AArch64 build
2016-06-28 12:47:07 +00:00
# - disable neon
2015-07-15 00:46:50 +00:00
pkgname=webrtc-audio-processing
pkgver=0.3.1
pkgrel=1
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/"
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)
_commit=e882a5442ac22c93648e12837248d651d18b9247 # tags/v0.3.1^0
2017-01-27 00:48:39 +00:00
source=("git+https://anongit.freedesktop.org/git/pulseaudio/webrtc-audio-processing#commit=$_commit"
2015-07-15 00:46:50 +00:00
'webrtc-fix-typedefs-on-other-arches.patch')
2017-01-27 00:48:39 +00:00
sha256sums=('SKIP'
2016-06-28 12:31:38 +00:00
'98ba3bcf8fc11c9c76eb707ee81a3ab668f10ad8cc4915deb842a3032557d15f')
2015-07-15 00:46:50 +00:00
2017-01-27 00:48:39 +00:00
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/+/g'
}
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() {
2017-01-27 00:48:39 +00:00
cd $pkgname
2016-06-28 12:47:07 +00:00
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon"
./configure --prefix=/usr --disable-static $CONFIG
2015-07-15 00:46:50 +00:00
make
}
package() {
2017-01-27 00:48:39 +00:00
cd $pkgname
2015-07-15 00:46:50 +00:00
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}