From 68638d46357cee3db13bc25be60b17047f6c43ab Mon Sep 17 00:00:00 2001 From: june <159748074+june-fish@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:06:49 -0500 Subject: [PATCH] add: chromebook-wireplumber-config (#1017) --- .../chromebook-wireplumber-config/anda.hcl | 5 +++ .../chromebook-wireplumber-config.spec | 36 +++++++++++++++++++ .../chromebook-wireplumber-config/update.rhai | 7 ++++ 3 files changed, 48 insertions(+) create mode 100644 anda/system/chromebook-wireplumber-config/anda.hcl create mode 100644 anda/system/chromebook-wireplumber-config/chromebook-wireplumber-config.spec create mode 100644 anda/system/chromebook-wireplumber-config/update.rhai diff --git a/anda/system/chromebook-wireplumber-config/anda.hcl b/anda/system/chromebook-wireplumber-config/anda.hcl new file mode 100644 index 0000000000..30885a99f7 --- /dev/null +++ b/anda/system/chromebook-wireplumber-config/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "chromebook-wireplumber-config.spec" + } +} diff --git a/anda/system/chromebook-wireplumber-config/chromebook-wireplumber-config.spec b/anda/system/chromebook-wireplumber-config/chromebook-wireplumber-config.spec new file mode 100644 index 0000000000..223cecf872 --- /dev/null +++ b/anda/system/chromebook-wireplumber-config/chromebook-wireplumber-config.spec @@ -0,0 +1,36 @@ +%global commit 4f5a96a359e0917ace6ae3778618a46d5e88c45a +%global commit_date 20240322 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global debug_package %{nil} +%define __os_install_post %{nil} + +Name: chromebook-wireplumber-config +Version: %commit_date.%shortcommit +Release: 1%?dist + +License: Apache-2.0 +Summary: Chromebook wireplumber configs +URL: https://github.com/WeirdTreeThing/chromebook-linux-audio +Source0: https://github.com/WeirdTreeThing/chromebook-linux-audio/archive/%commit/chromebook-linux-audio-%commit.tar.gz + +Requires: wireplumber + +%description +WeirdTreeThing's wireplumber configs for chromebooks. + +%prep +%autosetup -n chromebook-linux-audio-%commit + +%install +mkdir -p %buildroot/etc/wireplumber/main.lua.d +cp conf/avs/51-avs-dmic.lua %buildroot/etc/wireplumber/main.lua.d/ +cp conf/common/51-increase-headroom.lua %buildroot/etc/wireplumber/main.lua.d/ + +%files +%doc README.md +%license LICENSE +/etc/wireplumber/main.lua.d/*.lua + +%changelog +* Thu Mar 28 2024 june-fish +- Initial package. diff --git a/anda/system/chromebook-wireplumber-config/update.rhai b/anda/system/chromebook-wireplumber-config/update.rhai new file mode 100644 index 0000000000..ca0e02c7d8 --- /dev/null +++ b/anda/system/chromebook-wireplumber-config/update.rhai @@ -0,0 +1,7 @@ +if filters.contains("nightly") { + rpm.global("commit", gh_commit("WeirdTreeThing/chromebook-linux-audio")); + if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); + } +}