diff --git a/srcpkgs/alsa-plugins/files/asound.conf b/srcpkgs/alsa-plugins/files/asound.conf new file mode 100644 index 0000000000..3637db07d6 --- /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 2b38d6626c..48bd0397f5 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 +}