archrelease: copy trunk to extra-x86_64
[arch-packages.git] / webrtc-audio-processing / trunk / PKGBUILD
blobe5c43ba60a20949d0b9ec18f318bab07ef1cf1e8
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=webrtc-audio-processing
4 pkgver=0.3.1
5 pkgrel=3
6 pkgdesc="AudioProcessing library based on Google's implementation of WebRTC"
7 url="https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/"
8 arch=(x86_64)
9 license=(custom)
10 depends=(gcc-libs)
11 makedepends=(git)
12 provides=(libwebrtc_audio_processing.so)
13 _commit=e882a5442ac22c93648e12837248d651d18b9247  # tags/v0.3.1^0
14 source=("git+https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing.git#commit=$_commit")
15 sha256sums=('SKIP')
17 pkgver() {
18   cd $pkgname
19   git describe --tags | sed 's/^v//;s/-/+/g'
22 prepare() {
23   cd $pkgname
24   NOCONFIGURE=1 ./autogen.sh
27 build() {
28   cd $pkgname
29   ./configure --prefix=/usr --disable-static
30   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
31   make
34 check() {
35   cd $pkgname
36   make check
39 package() {
40   cd $pkgname
41   make DESTDIR="$pkgdir" install
42   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
45 # vim:set sw=2 et: