mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
New package: cmixer-0.2
This commit is contained in:
parent
7ace53fdbb
commit
bbbb94d4c3
2 changed files with 54 additions and 0 deletions
34
srcpkgs/cmixer/patches/linux.patch
Normal file
34
srcpkgs/cmixer/patches/linux.patch
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
--- 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 {
|
20
srcpkgs/cmixer/template
Normal file
20
srcpkgs/cmixer/template
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Template file for 'cmixer'
|
||||||
|
pkgname=cmixer
|
||||||
|
version=0.2
|
||||||
|
revision=1
|
||||||
|
depends="aucatctl perl-Curses-UI"
|
||||||
|
short_desc="Curses sndio mixer"
|
||||||
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||||
|
license="ISC"
|
||||||
|
homepage="https://rhaalovely.net/"
|
||||||
|
distfiles="https://rhaalovely.net/stuff/cmixer-${version}.tar.gz"
|
||||||
|
checksum=1ee4489a73f15b0a4a1c5698ac4476295b53c054c08a98ae94087f0f14104007
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
sed -n '3,15p' cmixer.pl >LICENSE
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vbin cmixer.pl cmixer
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue