Date: Wednesday, January 22, 2020 @ 21:56:47
  Author: dvzrv
Revision: 373803

upgpkg: alsa-plugins 1.2.1-2: Updating maintainer info. Switching to correct 
license (LGPL2.1). Adding all direct library dependencies to depends/ 
makedepends/ optdepends.
Switching to https upstream for source. Applying (not upstreamed) patch for 
being able to build plugins with ffmpeg > 4.0 (FS#60586). Also building maemo 
plugin. Simplifying installation.

Modified:
  alsa-plugins/trunk/PKGBUILD

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++------------------
 1 file changed, 31 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-01-22 20:21:55 UTC (rev 373802)
+++ PKGBUILD    2020-01-22 21:56:47 UTC (rev 373803)
@@ -1,32 +1,46 @@
 # Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+# Contributor: David Runge <[email protected]>
 # Contributor: Sergej Pupykin <[email protected]>
 # Contributor: Daniel Ehlers <[email protected]>
 
 pkgname=alsa-plugins
 pkgver=1.2.1
-pkgrel=1
-pkgdesc="Extra alsa plugins"
-arch=(x86_64)
+pkgrel=2
+pkgdesc="Additional library plugins"
+arch=('x86_64')
 url="http://www.alsa-project.org";
-license=(GPL)
-depends=(alsa-lib)
-makedepends=(libpulse jack ffmpeg)
-optdepends=('libpulse: PulseAudio plugin'
-            'jack: Jack plugin'
-            #'ffmpeg: libavcodec resampling plugin, a52 plugin'
-            'libsamplerate: libsamplerate resampling plugin'
-            'speex: libspeexdsp resampling plugin')
-source=("ftp://ftp.alsa-project.org/pub/plugins/$pkgname-$pkgver.tar.bz2";)
-sha256sums=('4d94de7ad41734b8604a652521200bb6554fcf0c2c00fdbd302b1710d76548da')
+license=('LGPL2.1')
+depends=('glibc' 'libasound.so')
+# 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
+makedepends=('dbus' 'libavcodec.so' 'libavutil.so' 'libjack.so' 'libpulse.so'
+'libsamplerate.so' 'libswresample.so' 'speexdsp')
+optdepends=('dbus: for maemo plugin'
+            'libavcodec.so: for pcm_a52 and rate_lavrate plugins'
+            'libavutil.so: for pcm_a52 and rate_lavrate plugins'
+            'libjack.so: for pcm_jack plugin'
+            'libsamplerate.so: for rate_samplerate plugin'
+            'libpulse.so: for conf_pulse, ctl_pulse and pcm_pulse plugins'
+            'libswresample.so: for pcm_a52 and rate_lavrate plugins'
+            'speexdsp: for pcm_speex and rate_speexrate plugins')
+source=("https://www.alsa-project.org/files/pub/plugins/$pkgname-$pkgver.tar.bz2";
+        
"${pkgname}-1.2.1-ffmpeg4.patch::https://git.harting.dev/IdleGandalf/alsa-plugins/commit/9cdbbb9874757b6f8fda7fb4ac2e3fc59da65946.patch";
+)
+sha512sums=('a49ef9290b66855112e301a5fd5a0932f13a50254e164f3340f2b342a36469532ee783beabfe5e95870dbf4cd81ca1e8d0415d94c8c7ee963133fb3c343721de'
+            
'06ff2aa30a55e0d04ac9d1f5a6fa11a6a3c04c3f6722c07ecd7cac57584e142ad6949fd6c856c66435ac5ff5cf910c362e9c72605ca190074764cf3d40a9d64f')
 
 prepare() {
   cd $pkgname-$pkgver
-  autoreconf -fvi
+  patch -Np1 -i "../${pkgname}-1.2.1-ffmpeg4.patch"
+  autoreconf -vfi
 }
 
 build() {
   cd $pkgname-$pkgver
-  ./configure --prefix=/usr --sysconfdir=/etc
+  ./configure --prefix=/usr \
+              --enable-maemo-plugin \
+              --sysconfdir=/etc
   make
 }
 
@@ -33,7 +47,6 @@
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
-
-  install -d "$pkgdir/usr/share/doc/$pkgname"
-  install -m644 doc/README* doc/*.txt "$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 644 doc/README* doc/*.txt \
+    -t "$pkgdir/usr/share/doc/$pkgname/"
 }

Reply via email to