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

Jan Steffens heftig at archlinux.org
Sun Mar 8 02:28:26 UTC 2020


    Date: Sunday, March 8, 2020 @ 02:28:26
  Author: heftig
Revision: 376955

archrelease: copy trunk to gnome-unstable-x86_64

Added:
  pipewire/repos/gnome-unstable-x86_64/
  pipewire/repos/gnome-unstable-x86_64/PKGBUILD
    (from rev 376954, pipewire/trunk/PKGBUILD)
  pipewire/repos/gnome-unstable-x86_64/pipewire.install
    (from rev 376954, pipewire/trunk/pipewire.install)

------------------+
 PKGBUILD         |   92 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 pipewire.install |   14 ++++++++
 2 files changed, 106 insertions(+)

Copied: pipewire/repos/gnome-unstable-x86_64/PKGBUILD (from rev 376954, pipewire/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD	                        (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD	2020-03-08 02:28:26 UTC (rev 376955)
@@ -0,0 +1,92 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=pipewire
+pkgname=(pipewire pipewire-docs pipewire-jack pipewire-pulse)
+pkgver=0.3.1
+pkgrel=1
+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=74a1632f0720886d5b3b6c23ee8fcd6c03ca7aac  # tags/0.3.1
+source=("git+https://github.com/PipeWire/pipewire#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgbase
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgbase
+}
+
+build() {
+  # warning: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Wformat-security]
+  CFLAGS+=" -Wformat"
+
+  arch-meson $pkgbase build \
+    -D docs=true \
+    -D man=true
+
+  ninja -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
+}
+
+package_pipewire() {
+  depends=(gstreamer gst-plugins-base sbc rtkit vulkan-icd-loader bluez-libs
+           libdbus-1.so libsndfile.so)
+  optdepends=('pipewire-docs: Documentation'
+              'pipewire-jack: JACK support'
+              'pipewire-pulse: PulseAudio support')
+  provides=(libpipewire-${pkgver:0:3}.so)
+  backup=(etc/pipewire/pipewire.conf)
+  install=pipewire.install
+
+  DESTDIR="$pkgdir" meson install -C build
+
+  cd "$pkgdir"
+
+  _pick docs usr/share/doc
+
+  _pick pulse usr/lib/libpulse*
+
+  _pick jack usr/lib/spa-0.2/jack
+  _pick jack usr/lib/libjack*
+}
+
+package_pipewire-docs() {
+  pkgdesc+=" (documentation)"
+  mv docs/* "$pkgdir"
+}
+
+package_pipewire-jack() {
+  pkgdesc+=" (JACK support)"
+  depends=(libpipewire-${pkgver:0:3}.so libjack.so)
+  provides=(libjack-pw.so)
+  mv jack/* "$pkgdir"
+}
+
+package_pipewire-pulse() {
+  pkgdesc+=" (PulseAudio support)"
+  depends=(libpipewire-${pkgver:0:3}.so libpulse.so libglib-2.0.so)
+  provides=(libpulse{,-simple,-mainloop-glib}-pw.so)
+  mv pulse/* "$pkgdir"
+}

Copied: pipewire/repos/gnome-unstable-x86_64/pipewire.install (from rev 376954, pipewire/trunk/pipewire.install)
===================================================================
--- gnome-unstable-x86_64/pipewire.install	                        (rev 0)
+++ gnome-unstable-x86_64/pipewire.install	2020-03-08 02:28:26 UTC (rev 376955)
@@ -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