Fixed script build

This commit is contained in:
Игорь Чудов 2022-10-24 15:49:04 +04:00
parent a0e0b98bd0
commit 2d24315065
2 changed files with 11 additions and 8 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
main() {
CARD="'sysdefault:CARD=Audio'"
CARD='sysdefault:CARD=Audio'
amixer -D $CARD cset iface=MIXER,name='Speaker Volume' 0,0
amixer -D $CARD cset iface=MIXER,name='Speaker Playback Switch' off,off

View File

@ -1,14 +1,15 @@
%define _unpackaged_files_terminate_build 1
Name: aqpro-mixer
Version: 0.1
Version: 0.2
Release: alt1
Summary: Aquarius Pro P30 K41 R53 mixer settings
License: %gpl3
License: %gpl3plus
Group: Other
BuildArch: x86_64
BuildArch: noarch
BuildRequires(pre): rpm-build-licenses
Requires: amixer
Source0: %name-%version.tar
@ -17,16 +18,18 @@ Source0: %name-%version.tar
Aquarius Pro P30 K41 R53 mixer settings
%prep
setup -q
%setup -q
%install
install -m 0755 -o root -g root aqpro-mixer %_initdir/aqpro-mixer
chmod +x %_initdir/aqpro-mixer
install -D -m 0755 aqpro-mixer %buildroot%_initdir/aqpro-mixer
chmod +x %buildroot%_initdir/aqpro-mixer
%files
%_initdir/rc.d/aqpro-mixer
%attr(755,root,root)%_initdir/aqpro-mixer
%changelog
* Mon Oct 24 2022 Igor Chudov <nir@altlinux.org> 0.2-alt1
- Fixed build
* Fri Oct 21 2022 Igor Chudov <nir@altlinux.org> 0.1-alt1
- Initial release.