[arch-commits] Commit in pipewire/repos (3 files)

Jan Steffens heftig at archlinux.org
Mon Oct 5 18:11:11 UTC 2020


    Date: Monday, October 5, 2020 @ 18:11:11
  Author: heftig
Revision: 397309

archrelease: copy trunk to testing-x86_64

Added:
  pipewire/repos/testing-x86_64/
  pipewire/repos/testing-x86_64/PKGBUILD
    (from rev 397308, pipewire/trunk/PKGBUILD)
  pipewire/repos/testing-x86_64/pipewire.install
    (from rev 397308, pipewire/trunk/pipewire.install)

------------------+
 PKGBUILD         |  104 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 pipewire.install |   14 +++++++
 2 files changed, 118 insertions(+)

Copied: pipewire/repos/testing-x86_64/PKGBUILD (from rev 397308, pipewire/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-10-05 18:11:11 UTC (rev 397309)
@@ -0,0 +1,104 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=pipewire
+pkgname=(pipewire pipewire-docs pipewire-jack pipewire-pulse pipewire-alsa)
+pkgver=0.3.13
+pkgrel=2
+pkgdesc="Server and user space API to deal with multimedia pipelines"
+url="https://pipewire.org"
+license=(LGPL2.1)
+arch=(x86_64)
+makedepends=(git meson doxygen graphviz xmltoman valgrind jack2 libpulse
+             alsa-lib gstreamer gst-plugins-base sbc rtkit vulkan-icd-loader
+             dbus libsndfile bluez-libs vulkan-headers)
+_commit=d7714f734dcf2a346f939e11e1e3f6a2373c8632  # tags/0.3.13
+source=("git+https://github.com/PipeWire/pipewire#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgbase
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgbase
+}
+
+build() {
+  arch-meson $pkgbase build \
+    -D docs=true \
+    -D udevrulesdir=/usr/lib/udev/rules.d
+  meson compile -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs
+}
+
+_pick() {
+  local p="$1" f d; shift
+  for f; do
+    d="$srcdir/$p/${f#$pkgdir/}"
+    mkdir -p "$(dirname "$d")"
+    mv "$f" "$d"
+    rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
+  done
+}
+
+_ver=${pkgver:0:3}
+
+package_pipewire() {
+  depends=(gstreamer gst-plugins-base sbc rtkit vulkan-icd-loader bluez-libs
+           alsa-card-profiles
+           libdbus-1.so libsndfile.so libudev.so libasound.so libsystemd.so
+           libglib-2.0.so libgobject-2.0.so)
+  optdepends=('pipewire-docs: Documentation'
+              'pipewire-jack: JACK support'
+              'pipewire-pulse: PulseAudio support')
+  provides=(libpipewire-$_ver.so)
+  backup=(etc/pipewire/pipewire.conf)
+  install=pipewire.install
+
+  DESTDIR="$pkgdir" meson install -C build
+
+  cd "$pkgdir"
+
+  mkdir -p etc/alsa/conf.d
+  ln -st etc/alsa/conf.d /usr/share/alsa/alsa.conf.d/50-pipewire.conf 
+
+  _pick docs usr/share/doc
+
+  _pick pulse usr/bin/pw-pulse usr/lib/pipewire-$_ver/pulse
+
+  _pick jack usr/bin/pw-jack usr/lib/pipewire-$_ver/jack
+  _pick jack usr/lib/spa-0.2/jack
+
+  # Use alsa-card-profiles built with Pulseaudio
+  rm -rv "$pkgdir"/usr/share/alsa-card-profile
+}
+
+package_pipewire-docs() {
+  pkgdesc+=" (documentation)"
+  mv docs/* "$pkgdir"
+}
+
+package_pipewire-jack() {
+  pkgdesc+=" (JACK support)"
+  depends=(libpipewire-$_ver.so libjack.so)
+  mv jack/* "$pkgdir"
+}
+
+package_pipewire-pulse() {
+  pkgdesc+=" (PulseAudio support)"
+  depends=(libpipewire-$_ver.so libglib-2.0.so)
+  mv pulse/* "$pkgdir"
+}
+
+package_pipewire-alsa() {
+  pkgdesc="ALSA Configuration for PipeWire"
+  depends=(libpipewire-$_ver.so)
+
+  mkdir -p "$pkgdir/etc/alsa/conf.d"
+  ln -st "$pkgdir/etc/alsa/conf.d" /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf
+}

Copied: pipewire/repos/testing-x86_64/pipewire.install (from rev 397308, pipewire/trunk/pipewire.install)
===================================================================
--- testing-x86_64/pipewire.install	                        (rev 0)
+++ testing-x86_64/pipewire.install	2020-10-05 18:11:11 UTC (rev 397309)
@@ -0,0 +1,14 @@
+post_install() {
+  # Enable socket by default
+  systemctl --global enable pipewire.socket
+}
+
+post_upgrade() {
+  if (( $(vercmp $2 0.1.6-2) < 0)); then
+    systemctl --global enable pipewire.socket
+  fi
+}
+
+pre_remove() {
+  systemctl --global disable pipewire.socket
+}



More information about the arch-commits mailing list