Github messages for voidlinux
 help / color / mirror / Atom feed
From: Animeshz <Animeshz@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Add wireplumber runit service
Date: Wed, 30 Mar 2022 12:43:43 +0200	[thread overview]
Message-ID: <20220330104343.g85AUYRavpSMPtvbNOBOVf2guA6iGGGyXKMkEu7dX8A@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36416@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

There is an updated pull request by Animeshz against master on the void-packages repository

https://github.com/Animeshz/void-packages wireplumber
https://github.com/void-linux/void-packages/pull/36416

Add wireplumber runit service
#### Testing the changes
- I tested the changes in this PR: **YES**

Also, closes #36393

A patch file from https://github.com/void-linux/void-packages/pull/36416.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-wireplumber-36416.patch --]
[-- Type: text/x-diff, Size: 2026 bytes --]

From 7882d2f8a5c93e33b904f9c4603c179b41fdfe91 Mon Sep 17 00:00:00 2001
From: Animesh Sahu <animeshsahu19@yahoo.com>
Date: Tue, 29 Mar 2022 23:59:51 +0530
Subject: [PATCH] wireplumber: Add runit service

---
 srcpkgs/wireplumber/files/wireplumber/control/t | 3 +++
 srcpkgs/wireplumber/files/wireplumber/run       | 5 +++++
 srcpkgs/wireplumber/template                    | 3 ++-
 3 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100755 srcpkgs/wireplumber/files/wireplumber/control/t
 create mode 100644 srcpkgs/wireplumber/files/wireplumber/run

diff --git a/srcpkgs/wireplumber/files/wireplumber/control/t b/srcpkgs/wireplumber/files/wireplumber/control/t
new file mode 100755
index 000000000000..29317922c4bb
--- /dev/null
+++ b/srcpkgs/wireplumber/files/wireplumber/control/t
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/usr/bin/kill -TERM $(pgrep -P $(cat /run/runit/supervise.wireplumber/pid) | tail -1)
diff --git a/srcpkgs/wireplumber/files/wireplumber/run b/srcpkgs/wireplumber/files/wireplumber/run
new file mode 100644
index 000000000000..2049d18b4d2b
--- /dev/null
+++ b/srcpkgs/wireplumber/files/wireplumber/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+# this service is experimental and most setups should start pipewire and wireplumber as a user,
+# for further information, please refer to the handbook
+sv check pipewire > /dev/null || exit 1
+exec env HOME=/var/run/pipewire chpst -u _pipewire:_pipewire:audio:video dbus-run-session wireplumber
diff --git a/srcpkgs/wireplumber/template b/srcpkgs/wireplumber/template
index e94c35b3eea5..dadbf62647fb 100644
--- a/srcpkgs/wireplumber/template
+++ b/srcpkgs/wireplumber/template
@@ -1,7 +1,7 @@
 # Template file for 'wireplumber'
 pkgname=wireplumber
 version=0.4.8
-revision=1
+revision=2
 build_style=meson
 build_helper=gir
 configure_args="-Dintrospection=enabled -Dsystem-lua=true"
@@ -18,6 +18,7 @@ checksum=a7a84c21230c339a905704a9495dda10a4dec41a96bc115a9b33d24310a3f605
 
 post_install() {
 	vlicense LICENSE
+	vsv wireplumber
 }
 
 wireplumber-devel_package() {

  reply	other threads:[~2022-03-30 10:43 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-30 10:42 [PR PATCH] " Animeshz
2022-03-30 10:43 ` Animeshz [this message]
2022-03-30 11:26 ` [PR REVIEW] wireplumber: Add " ahesford
2022-03-30 11:26 ` ahesford
2022-03-30 11:26 ` ahesford
2022-03-30 11:50 ` Animeshz
2022-03-30 11:52 ` Animeshz
2022-03-30 11:52 ` Animeshz
2022-03-30 11:55 ` Animeshz
2022-03-30 11:55 ` Animeshz
2022-03-30 12:03 ` Animeshz
2022-03-30 12:03 ` Animeshz
2022-03-30 12:04 ` Animeshz
2022-03-30 12:05 ` Animeshz
2022-03-30 12:10 ` Animeshz
2022-03-30 12:30 ` ahesford
2022-03-30 12:33 ` ahesford
2022-03-30 12:37 ` ahesford
2022-03-30 12:40 ` ahesford
2022-03-30 12:53 ` Animeshz
2022-03-30 12:53 ` Animeshz
2022-03-30 13:09 ` [PR PATCH] [Updated] " Animeshz
2022-03-30 14:29 ` [PR REVIEW] " Animeshz
2022-03-30 14:31 ` [PR PATCH] [Updated] " Animeshz
2022-03-30 17:36 ` [PR REVIEW] " subnut
2022-03-30 17:40 ` subnut
2022-03-30 18:13 ` Animeshz
2022-03-30 18:18 ` Animeshz
2022-03-30 18:25 ` Animeshz
2022-03-30 18:28 ` Animeshz
2022-03-31  2:13 ` [PR PATCH] [Closed]: " ahesford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220330104343.g85AUYRavpSMPtvbNOBOVf2guA6iGGGyXKMkEu7dX8A@z \
    --to=animeshz@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).