diff options
author | Que Quotion | 2021-06-19 01:13:03 +0900 |
---|---|---|
committer | Que Quotion | 2021-06-19 01:13:03 +0900 |
commit | a43476f3aa388facc5b935a76fefa62a6877ca86 (patch) | |
tree | cb44d99120087686733349cea52c1de5e90defdf | |
download | aur-a43476f3aa388facc5b935a76fefa62a6877ca86.tar.gz |
Initial commit: Additional ALSA plugins (upstream development tip)
-rw-r--r-- | .SRCINFO | 40 | ||||
-rw-r--r-- | PKGBUILD | 84 | ||||
-rw-r--r-- | pulse-sysdefault.diff | 17 |
3 files changed, 141 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e66cab06d229 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,40 @@ +pkgbase = alsa-plugins-git + pkgdesc = Additional ALSA plugins + pkgver = 1.2.5.r27.g873d962 + pkgrel = 1 + epoch = 1 + url = https://www.alsa-project.org + arch = x86_64 + license = LGPL2.1 + makedepends = alsa-lib + makedepends = dbus + makedepends = jack + makedepends = libavtp + makedepends = libpulse + makedepends = libsamplerate + makedepends = speexdsp + makedepends = ffmpeg + provides = alsa-plugins=1.2.5 + conflicts = alsa-plugins + source = git+https://github.com/alsa-project/alsa-plugins.git + source = pulse-sysdefault.diff + sha512sums = SKIP + sha512sums = b8c8e55f4da0ae87cc44d75a906d00b4f1e2304e6bc10419c6e0913c8f7d29599a3f3d41733decbe412a4669ea0d5af2a57f85b1655fba3625fbbd33c956f3f9 + b2sums = SKIP + b2sums = 83c16b77c1737b2b59b60302be22b63e53026a366799fd97fe3c03b86756063d1b9689d5ffc7c793b40db55bdb79a5b6d72a17e0c8aa32364d6e639cf7ad3ce0 + +pkgname = alsa-plugins-git + depends = glibc + depends = libasound.so + optdepends = dbus: for maemo plugin + optdepends = jack: for pcm_jack plugin + optdepends = libavtp: for pcm_aaf plugin + optdepends = libsamplerate: for rate_samplerate plugin + optdepends = libpulse: for conf_pulse, ctl_pulse and pcm_pulse plugins + optdepends = speexdsp: for pcm_speex and rate_speexrate plugins + optdepends = ffmpeg: for pcm_a52 plugin + +pkgname = pulseaudio-alsa-git + pkgdesc = ALSA Configuration for PulseAudio + depends = alsa-plugins>=1.2.2-2 + depends = pulseaudio diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a19adb9d08ac --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,84 @@ +# Maintainer: David Runge <dvzrv@archlinux.org> +# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Daniel Ehlers <danielehlers@mindeye.net> + +_basename=alsa-plugins +pkgname=(alsa-plugins-git pulseaudio-alsa-git) +pkgver=1.2.5.r27.g873d962 +pkgrel=1 +epoch=1 +pkgdesc="Additional ALSA plugins" +arch=(x86_64) +url="https://www.alsa-project.org" +license=(LGPL2.1) +provides=('alsa-plugins=1.2.5') +conflicts=(alsa-plugins) +makedepends=(alsa-lib dbus jack libavtp libpulse libsamplerate speexdsp ffmpeg) +source=(git+https://github.com/alsa-project/alsa-plugins.git + pulse-sysdefault.diff) +sha512sums=('SKIP' + 'b8c8e55f4da0ae87cc44d75a906d00b4f1e2304e6bc10419c6e0913c8f7d29599a3f3d41733decbe412a4669ea0d5af2a57f85b1655fba3625fbbd33c956f3f9') +b2sums=('SKIP' + '83c16b77c1737b2b59b60302be22b63e53026a366799fd97fe3c03b86756063d1b9689d5ffc7c793b40db55bdb79a5b6d72a17e0c8aa32364d6e639cf7ad3ce0') + +pkgver() { + cd $_basename + git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd $_basename + + # Make use of the pulse plugin's "fallback" feature + # Keeps parity with our old config from pulseaudio-alsa + patch -Np1 -i ../pulse-sysdefault.diff + + # a52, lavrate plugins not compatible with ffmpeg >= 4.0 + # https://mailman.alsa-project.org/pipermail/alsa-devel/2019-December/159425.html + # https://bugs.archlinux.org/task/60586 + autoreconf -fvi +} + +build() { + cd $_basename + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --enable-maemo-plugin \ + --enable-maemo-resource-manager + make +} + +package_alsa-plugins-git() { + depends=(glibc libasound.so) + optdepends=('dbus: for maemo plugin' + 'jack: for pcm_jack plugin' + 'libavtp: for pcm_aaf plugin' + 'libsamplerate: for rate_samplerate plugin' + 'libpulse: for conf_pulse, ctl_pulse and pcm_pulse plugins' + 'speexdsp: for pcm_speex and rate_speexrate plugins' + 'ffmpeg: for pcm_a52 plugin') + + cd $_basename + make DESTDIR="$pkgdir" install + install -Dt "$pkgdir/usr/share/doc/$pkgbase" -m644 doc/README* doc/*.txt + + # remove maemo plugin configuration (it overrides defaults for pcm and ctl), + # until a better way is found to package default overrides: + # https://bugs.archlinux.org/task/65440 + rm -v "${pkgdir}/etc/alsa/conf.d/98-maemo.conf" + + # make a proper off-by-default config template out of the example file + mv -v "${pkgdir}/etc/alsa/conf.d/99-pulseaudio-default.conf.example" \ + "${pkgdir}/usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf" +} + +package_pulseaudio-alsa-git() { + pkgdesc="ALSA Configuration for PulseAudio" + depends=('alsa-plugins>=1.2.2-2' pulseaudio) + + mkdir -p "${pkgdir}/etc/alsa/conf.d" + ln -st "${pkgdir}/etc/alsa/conf.d" \ + /usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf +} diff --git a/pulse-sysdefault.diff b/pulse-sysdefault.diff new file mode 100644 index 000000000000..4ecd45f85942 --- /dev/null +++ b/pulse-sysdefault.diff @@ -0,0 +1,17 @@ +diff -u -r alsa-plugins-1.2.2/pulse/99-pulseaudio-default.conf.example alsa-plugins-1.2.2-pulse-sysdefault/pulse/99-pulseaudio-default.conf.example +--- alsa-plugins-1.2.2/pulse/99-pulseaudio-default.conf.example 2020-02-19 09:35:42.000000000 +0000 ++++ alsa-plugins-1.2.2-pulse-sysdefault/pulse/99-pulseaudio-default.conf.example 2020-05-13 10:04:28.446568563 +0000 +@@ -2,6 +2,7 @@ + + pcm.!default { + type pulse ++ fallback "sysdefault" + hint { + show on + description "Default ALSA Output (currently PulseAudio Sound Server)" +@@ -10,4 +11,5 @@ + + ctl.!default { + type pulse ++ fallback "sysdefault" + } |