From b70f3d9de55c8c123d846e58540d5d53fb0a3d51 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Wed, 2 Sep 2020 17:51:00 +0200 Subject: [PATCH] cmixer: update to 0.3. --- srcpkgs/cmixer/patches/linux.patch | 34 ------------------------------ srcpkgs/cmixer/template | 6 +++--- 2 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 srcpkgs/cmixer/patches/linux.patch diff --git a/srcpkgs/cmixer/patches/linux.patch b/srcpkgs/cmixer/patches/linux.patch deleted file mode 100644 index 653488322b..0000000000 --- a/srcpkgs/cmixer/patches/linux.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- cmixer.pl.orig -+++ cmixer.pl -@@ -34,23 +34,6 @@ - - sub read_mixerctl { - my $self = shift; -- foreach (`mixerctl 2>&1`) { -- #mixerctl: /dev/mixer: Device not configured -- die "No mixer device found" if (/^mixerctl: \/dev\/mixer.: Device not configured$/); -- #outputs.master=255,255 volume -- if (/^(outputs|inputs|record)\.([^\.]*)=(\d+),(\d+)\s+/) { -- $self->{mixer}{$1}{$2}{volume}{left} = $3; -- $self->{mixer}{$1}{$2}{volume}{right} = $4; -- # outputs.mono=255 volume -- } elsif (/^(outputs|inputs|record)\.([^\.]*)=(\d+)\s+/) { -- $self->{mixer}{$1}{$2}{volume}{center} = $3; -- # outputs.master.mute=off [ off on ] -- } elsif (/^(outputs|inputs|record)\.(.*)\.mute=(on|off)\s+/) { -- $self->{mixer}{$1}{$2}{mute} = $3; -- } -- #todo: record.source=mic [ mic cd video aux line mixerout mixeroutmono phone ] -- #inputs.mix_source=mic,beep,hp { mic mic2 beep hp } -- } - foreach (`aucatctl 2>&1`) { - die "Failed to connect to sndiod" if (/couldn't open MIDI device$/); - #mplayer0=127 -@@ -59,7 +42,6 @@ - $self->{mixer}{sndio}{$1}{volume}{center} = 2 * $2; - } - } -- die "No outputs found" unless (exists $self->{mixer}{outputs}); - } - - sub update_view { diff --git a/srcpkgs/cmixer/template b/srcpkgs/cmixer/template index 1fefb2b529..a87f38acb6 100644 --- a/srcpkgs/cmixer/template +++ b/srcpkgs/cmixer/template @@ -1,14 +1,14 @@ # Template file for 'cmixer' pkgname=cmixer -version=0.2 +version=0.3 revision=1 -depends="aucatctl perl-Curses-UI" +depends="sndio>=1.7.0_1 perl-Curses-UI" short_desc="Curses sndio mixer" maintainer="Duncaen " license="ISC" homepage="https://rhaalovely.net/" distfiles="https://rhaalovely.net/stuff/cmixer-${version}.tar.gz" -checksum=1ee4489a73f15b0a4a1c5698ac4476295b53c054c08a98ae94087f0f14104007 +checksum=5b5dc5fbddf635874941e717752e7f8c6b1054bb8262dbfa3ac42898fedd42b0 post_extract() { sed -n '3,15p' cmixer.pl >LICENSE