[arch-commits] Commit in webrtc-audio-processing/trunk (PKGBUILD-1.0)

Jan Steffens heftig at gemini.archlinux.org
Mon Nov 8 22:25:27 UTC 2021


    Date: Monday, November 8, 2021 @ 22:25:27
  Author: heftig
Revision: 427707

add a PKGBUILD for 1.0

Added:
  webrtc-audio-processing/trunk/PKGBUILD-1.0

--------------+
 PKGBUILD-1.0 |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Added: PKGBUILD-1.0
===================================================================
--- PKGBUILD-1.0	                        (rev 0)
+++ PKGBUILD-1.0	2021-11-08 22:25:27 UTC (rev 427707)
@@ -0,0 +1,41 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+
+pkgname=webrtc-audio-processing
+pkgver=1.0+20+ge31340c
+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=(gcc-libs)
+makedepends=(git meson abseil-cpp)
+provides=(libwebrtc-audio-{coding,processing}-${pkgver%%.*}.so)
+_commit=e31340c243f034e26e1e876f3f32fc842f5e5b5b  # master
+source=("git+https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+}
+
+build() {
+  arch-meson $pkgname build \
+    -D cpp_std=c++17  # must match abseil
+  meson compile -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs
+}
+
+package() {
+  meson install -C build --destdir "$pkgdir"
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/COPYING
+}
+
+# vim:set sw=2 et:



More information about the arch-commits mailing list