summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD57
1 files changed, 35 insertions, 22 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 98955379741..d2f8686f9d0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,54 @@
-_pkgbasename=webrtc-audio-processing
-pkgname=lib32-$_pkgbasename
-pkgver=0.3
-pkgrel=2
+# Maintainer: Rodrigo Bezerra <rodrigobezerra21 at gmail dot com>
+# Contributor: zaplo
+
+_basename=webrtc-audio-processing
+pkgname=lib32-webrtc-audio-processing
+pkgver=0.3.1
+pkgrel=1
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=(lib32-gcc-libs)
+depends=(lib32-gcc-libs webrtc-audio-processing)
makedepends=(git)
-optdepends=('webrtc-audio-processing: development headers')
-_commit=fc0e76139404e08cc5b8024daafa1ddf576a4e21 # tags/v0.3^0
+_commit=e882a5442ac22c93648e12837248d651d18b9247 # tags/v0.3.1^0
source=("git+https://anongit.freedesktop.org/git/pulseaudio/webrtc-audio-processing#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
- cd $_pkgbasename
- git describe --tags | sed 's/^v//;s/-/+/g'
+ cd $_basename
+
+ git describe --tags | sed 's/^v//;s/-/+/g'
}
prepare() {
- cd $_pkgbasename
- NOCONFIGURE=1 ./autogen.sh
+ cd $_basename
+
+ NOCONFIGURE=1 ./autogen.sh
}
build() {
- cd $_pkgbasename
- export CC='gcc -m32'
- export CXX='g++ -m32'
- ./configure --disable-static --prefix=/usr --libdir=/usr/lib32
- make
+ cd $_basename
+
+ export CC='gcc -m32'
+ export CXX='g++ -m32'
+ export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+
+ ./configure \
+ --build=i686-pc-linux-gnu \
+ --prefix=/usr \
+ --libdir=/usr/lib32 \
+ --disable-static
+
+ make
}
package() {
- cd $_pkgbasename
- make DESTDIR=${pkgdir} install
- if ! [ -z "$pkgdir/usr/include/webrtc_audio_processing" ]; then
- rm -r "$pkgdir/usr/include"
- fi
- install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+ cd $_basename
+
+ make DESTDIR=${pkgdir} install
+
+ rm -r "$pkgdir/usr/include"
+
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}