From 6d999975375670e20038309bbc34ca5cc7257ab5 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 24 Feb 2021 00:33:04 +0100 Subject: [PATCH] Initial upload: alsa-plugins-libswresample 1.2.2-1 --- alsa-plugins-libswresample/.SRCINFO | 32 +++++++++ alsa-plugins-libswresample/PKGBUILD | 68 +++++++++++++++++++ .../pulse-sysdefault.diff | 17 +++++ 3 files changed, 117 insertions(+) create mode 100644 alsa-plugins-libswresample/.SRCINFO create mode 100644 alsa-plugins-libswresample/PKGBUILD create mode 100644 alsa-plugins-libswresample/pulse-sysdefault.diff diff --git a/alsa-plugins-libswresample/.SRCINFO b/alsa-plugins-libswresample/.SRCINFO new file mode 100644 index 0000000..17f03f1 --- /dev/null +++ b/alsa-plugins-libswresample/.SRCINFO @@ -0,0 +1,32 @@ +pkgbase = alsa-plugins-libswresample + pkgdesc = Additional ALSA plugins (with libswresample support) + pkgver = 1.2.2 + 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 + 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 + source = https://www.alsa-project.org/files/pub/plugins/alsa-plugins-1.2.2.tar.bz2 + source = pulse-sysdefault.diff + source = https://git.harting.dev/anonfunc/alsa-plugins/commit/9cdbbb9874757b6f8fda7fb4ac2e3fc59da65946.patch + sha256sums = 1c0f06450c928d711719686c9dbece2d480184f36fab11b8f0534cb7b41e337d + sha256sums = d8c59b891e2913619d057ffea308293d73892b16fa5a01583d056e372e55309d + sha256sums = f1fc4fe7d3b4c34b244b276d109af9bfb0b501554e882749b22d4e9a6f3d7596 + +pkgname = alsa-plugins-libswresample + diff --git a/alsa-plugins-libswresample/PKGBUILD b/alsa-plugins-libswresample/PKGBUILD new file mode 100644 index 0000000..cbb3f84 --- /dev/null +++ b/alsa-plugins-libswresample/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: Giovanni Harting <539@idlegandalf.com> +# Contributor: David Runge +# Contributor: Jan Alexander Steffens (heftig) +# Contributor: Sergej Pupykin +# Contributor: Daniel Ehlers + +pkgname=alsa-plugins-libswresample +_basename=alsa-plugins +pkgver=1.2.2 +pkgrel=1 +epoch=1 +pkgdesc="Additional ALSA plugins (with libswresample support)" +arch=(x86_64) +url="https://www.alsa-project.org" +license=(LGPL2.1) +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') +makedepends=(alsa-lib dbus jack libavtp libpulse libsamplerate speexdsp) +source=("https://www.alsa-project.org/files/pub/plugins/$_basename-$pkgver.tar.bz2" + pulse-sysdefault.diff + "https://git.harting.dev/anonfunc/alsa-plugins/commit/9cdbbb9874757b6f8fda7fb4ac2e3fc59da65946.patch") +sha256sums=('1c0f06450c928d711719686c9dbece2d480184f36fab11b8f0534cb7b41e337d' + 'd8c59b891e2913619d057ffea308293d73892b16fa5a01583d056e372e55309d' + 'f1fc4fe7d3b4c34b244b276d109af9bfb0b501554e882749b22d4e9a6f3d7596') + +prepare() { + cd $_basename-$pkgver + + # Make use of the pulse plugin's "fallback" feature + # Keeps parity with our old config from pulseaudio-alsa + patch -Np1 -i ../pulse-sysdefault.diff + + # Make rate plugin use libswresample + patch -Np1 -i ../9cdbbb9874757b6f8fda7fb4ac2e3fc59da65946.patch + + autoreconf -fvi +} + +build() { + cd $_basename-$pkgver + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --enable-maemo-plugin \ + --enable-maemo-resource-manager + make +} + +package() { + cd $_basename-$pkgver + make DESTDIR="$pkgdir" install + install -Dt "$pkgdir/usr/share/doc/$_basename" -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" +} +# vim:set sw=2 et: diff --git a/alsa-plugins-libswresample/pulse-sysdefault.diff b/alsa-plugins-libswresample/pulse-sysdefault.diff new file mode 100644 index 0000000..4ecd45f --- /dev/null +++ b/alsa-plugins-libswresample/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" + }