Skip to content

Commit

Permalink
add: chromebook-wireplumber-config
Browse files Browse the repository at this point in the history
  • Loading branch information
june-fish committed Mar 28, 2024
1 parent 65e8e33 commit b66a6a4
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/system/chromebook-wireplumber-config/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "chromebook-wireplumber-config.spec"
}
}
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
- Initial package.
7 changes: 7 additions & 0 deletions anda/system/chromebook-wireplumber-config/update.rhai
Original file line number Diff line number Diff line change
@@ -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());
}
}

0 comments on commit b66a6a4

Please sign in to comment.