From 26d3920230f970a28e323bcc1d4617ca07d74a5c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 13 Feb 2012 12:30:54 +0100 Subject: [PATCH] alsa-plugins: added /etc/asound.conf defaulting to pulseaudio. --- srcpkgs/alsa-plugins/files/asound.conf | 16 ++++++++++++++++ srcpkgs/alsa-plugins/template | 9 +++++++++ 2 files changed, 25 insertions(+) create mode 100644 srcpkgs/alsa-plugins/files/asound.conf diff --git a/srcpkgs/alsa-plugins/files/asound.conf b/srcpkgs/alsa-plugins/files/asound.conf new file mode 100644 index 00000000000..3637db07d68 --- /dev/null +++ b/srcpkgs/alsa-plugins/files/asound.conf @@ -0,0 +1,16 @@ +# Use pulseaudio by default +pcm.!default { + type pulse + fallback "sysdefault" + hint { + show on + description "Default ALSA Output (currently PulseAudio Sound Server)" + } +} + +ctl.!default { + type pulse + fallback "sysdefault" +} + +# vim:set ft=alsaconf: diff --git a/srcpkgs/alsa-plugins/template b/srcpkgs/alsa-plugins/template index 2b38d6626c8..48bd0397f57 100644 --- a/srcpkgs/alsa-plugins/template +++ b/srcpkgs/alsa-plugins/template @@ -1,11 +1,14 @@ # Template build file for 'alsa-plugins'. pkgname=alsa-plugins version=1.0.25 +revision=1 +homepage="http://www.alsa-project.org" distfiles="ftp://ftp.alsa-project.org/pub/plugins/$pkgname-$version.tar.bz2" build_style=gnu-configure configure_args="--disable-maemo-plugin --with-speex=lib" short_desc="Advanced Linux Sound Architecture (ALSA) extra plugins" maintainer="Juan RP " +license="GPL-2, LGPL-2.1" checksum=a0e374fd6d5ee9683473a5b6e73dadde61d54851065ed670d6627d344b565aab long_desc=" The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI @@ -14,6 +17,8 @@ long_desc=" This package includes some ALSA extra plugins for PulseAudio, Speex, FFmpeg's libavcodec library and libsamplerate." +conf_files="/etc/asound.conf" + Add_dependency build pkg-config Add_dependency build alsa-lib-devel Add_dependency build speex-devel @@ -21,3 +26,7 @@ Add_dependency build ffmpeg-devel Add_dependency build libsamplerate-devel Add_dependency build pulseaudio-devel Add_dependency build jack-devel + +post_install() { + vinstall ${FILESDIR}/asound.conf 644 etc +}