[arch-commits] Commit in swh-plugins/trunk (PKGBUILD mbeq_crash_fix.patch)

2018-02-19 Thread David Runge via arch-commits
Date: Monday, February 19, 2018 @ 13:21:06
  Author: dvzrv
Revision: 296369

upgpkg: swh-plugins 0.4.17-1

Upgrading to 0.4.17. Switching to correct license (GPL2).
Switching to github as download upstream. Removing (now) unneeded patch.
Running autoreconf during prepare(). Adding various docs. Minor fixes.

Modified:
  swh-plugins/trunk/PKGBUILD
Deleted:
  swh-plugins/trunk/mbeq_crash_fix.patch

--+
 PKGBUILD |   41 ++---
 mbeq_crash_fix.patch |   39 ---
 2 files changed, 14 insertions(+), 66 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-02-19 12:46:26 UTC (rev 296368)
+++ PKGBUILD2018-02-19 13:21:06 UTC (rev 296369)
@@ -1,53 +1,40 @@
 # $Id$
+# Maintainer: David Runge 
 # Maintainer: Ray Rashif 
 # Contributor: Damir Perisa 
 # Contributor: Robert Emil Berge
 
-# move to github source? see frontpage news updates
-# and also https://github.com/swh/ladspa
-
 pkgname=swh-plugins
-pkgver=0.4.15
-pkgrel=7
+pkgver=0.4.17
+pkgrel=1
 pkgdesc="Steve Harris' LADSPA plug-ins suite"
 arch=('x86_64')
 url="http://plugin.org.uk/;
-license=('GPL')
+license=('GPL2')
 depends=('fftw' 'ladspa')
 makedepends=('libxml2' 'perl-xml-parser')
 groups=('ladspa-plugins')
-source=("http://plugin.org.uk/releases/$pkgver/$pkgname-$pkgver.tar.gz;
-'mbeq_crash_fix.patch')
-md5sums=('2fbdccef2462ea553901acd429fa3573'
- 'a60422c8dea95bee6f9adcdc70dff7e0')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/swh/ladspa/archive/v${pkgver}.tar.gz;)
+sha512sums=('6b566030b43c3929ce8938648abd458efa0fea0b4916410a34b4f4fa788c45e4a6ec3f46ca435f8546179ff0c4674303db22314e1c1f1d09e5f2b71e6c5aecc7')
 
 prepare() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  # Arch64 fix;
-  # -fPIC seems to be the only option
-  if [ "$CARCH" = 'x86_64' ]; then
-export CFLAGS="$CFLAGS -fPIC"
-export CXXFLAGS="$CFLAGS"
-  fi
-
-  # fix Firefox crash on x64 when
-  # plugin is in use by ALSA;
-  # see https://bugs.archlinux.org/task/24579
-  patch -Np1 -i "$srcdir/mbeq_crash_fix.patch"
+  mv -v ladspa-${pkgver} "${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
+  autoreconf -vfi
+  export CFLAGS="$CFLAGS -fPIC"
 }
 
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
-
+  cd "${pkgname}-${pkgver}"
   ./configure --prefix=/usr
   make
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
-
+  cd "${pkgname}-${pkgver}"
   make DESTDIR="$pkgdir/" install
+  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
+-vDm644 {AUTHORS,ChangeLog,NEWS,README,TODO}
 }
 
 # vim:set ts=2 sw=2 et:

Deleted: mbeq_crash_fix.patch
===
--- mbeq_crash_fix.patch2018-02-19 12:46:26 UTC (rev 296368)
+++ mbeq_crash_fix.patch2018-02-19 13:21:06 UTC (rev 296369)
@@ -1,39 +0,0 @@
-diff -Nru swh-plugins-0.4.15.orig/mbeq_1197.c swh-plugins-0.4.15/mbeq_1197.c
 swh-plugins-0.4.15.orig/mbeq_1197.c2006-08-09 01:49:15.0 
+1000
-+++ swh-plugins-0.4.15/mbeq_1197.c 2011-06-05 10:57:17.929107102 +1000
-@@ -457,7 +457,8 @@
-   #endif
-   
-   // Multiply the bins magnitudes by the coeficients
--  for (i = 0; i < FFT_LENGTH/2; i++) {
-+  comp[0] *= coefs[0];
-+  for (i = 1; i < FFT_LENGTH/2; i++) {
-   comp[i] *= coefs[i];
-   comp[FFT_LENGTH-i] *= coefs[i];
-   }
-diff -Nru swh-plugins-0.4.15.orig/mbeq_1197.so.c 
swh-plugins-0.4.15/mbeq_1197.so.c
 swh-plugins-0.4.15.orig/mbeq_1197.so.c 2003-10-22 02:13:40.0 
+1000
-+++ swh-plugins-0.4.15/mbeq_1197.so.c  2011-06-05 10:57:52.265774336 +1000
-@@ -446,7 +446,8 @@
-   #endif
-   
-   // Multiply the bins magnitudes by the coeficients
--  for (i = 0; i < FFT_LENGTH/2; i++) {
-+  comp[0] *= coefs[0];
-+  for (i = 1; i < FFT_LENGTH/2; i++) {
-   comp[i] *= coefs[i];
-   comp[FFT_LENGTH-i] *= coefs[i];
-   }
-diff -Nru swh-plugins-0.4.15.orig/mbeq_1197.xml 
swh-plugins-0.4.15/mbeq_1197.xml
 swh-plugins-0.4.15.orig/mbeq_1197.xml  2005-06-01 19:51:58.0 
+1000
-+++ swh-plugins-0.4.15/mbeq_1197.xml   2011-06-05 10:57:39.335774121 +1000
-@@ -171,7 +171,8 @@
- #endif
- 
-   // Multiply the bins magnitudes by the coeficients
--  for (i = 0; i < FFT_LENGTH/2; i++) {
-+  comp[0] *= coefs[0];
-+  for (i = 1; i < FFT_LENGTH/2; i++) {
-   comp[i] *= coefs[i];
-   comp[FFT_LENGTH-i] *= coefs[i];
-   }


[arch-commits] Commit in swh-plugins/trunk (PKGBUILD mbeq_crash_fix.patch)

2011-06-05 Thread Ray Rashif
Date: Sunday, June 5, 2011 @ 17:07:33
  Author: schiv
Revision: 126505

upgpkg: swh-plugins 0.4.15-4
fix a crash; FS#24579

Added:
  swh-plugins/trunk/mbeq_crash_fix.patch
Modified:
  swh-plugins/trunk/PKGBUILD

--+
 PKGBUILD |   48 
 mbeq_crash_fix.patch |   39 +++
 2 files changed, 71 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-06-05 19:50:57 UTC (rev 126504)
+++ PKGBUILD2011-06-05 21:07:33 UTC (rev 126505)
@@ -1,29 +1,45 @@
 # $Id$
-#Maintainer: Damir Perisa damir.per...@bluewin.ch
-#Contributor: Robert Emil Berge
+# Maintainer: Ray Rashif sc...@archlinux.org
+# Contributor: Damir Perisa damir.per...@bluewin.ch
+# Contributor: Robert Emil Berge
 
 pkgname=swh-plugins
 pkgver=0.4.15
-pkgrel=3
-pkgdesc=LADSPA Plugin-Collection from plugin.org.uk
-arch=(i686 x86_64)
+pkgrel=4
+pkgdesc=Steve Harris' LADSPA plug-ins suite
+arch=('i686' 'x86_64')
 url=http://plugin.org.uk/;
 license=('GPL')
 depends=('fftw' 'ladspa')
 groups=('ladspa-plugins')
-source=(http://plugin.org.uk/releases/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-md5sums=('2fbdccef2462ea553901acd429fa3573')
+source=(http://plugin.org.uk/releases/$pkgver/$pkgname-$pkgver.tar.gz;
+'mbeq_crash_fix.patch')
+md5sums=('2fbdccef2462ea553901acd429fa3573'
+ 'a60422c8dea95bee6f9adcdc70dff7e0')
 
 build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+  cd $srcdir/$pkgname-$pkgver
 
-#Arch64 fix, -fPIC seems to be the only option
-if [ $CARCH = x86_64 ]; then
-  export CFLAGS=$CFLAGS -fPIC
-  export CXXFLAGS=$CFLAGS
-fi
+  # Arch64 fix;
+  # -fPIC seems to be the only option
+  if [ $CARCH = 'x86_64' ]; then
+export CFLAGS=$CFLAGS -fPIC
+export CXXFLAGS=$CFLAGS
+  fi
 
- ./configure --prefix=/usr || return 1
-  make || return 1
-  make DESTDIR=${pkgdir} install || return 1
+  # fix Firefox crash on x64 when
+  # plugin is in use by ALSA;
+  # see https://bugs.archlinux.org/task/24579
+  patch -Np1 -i $srcdir/mbeq_crash_fix.patch
+
+  ./configure --prefix=/usr
+  make
 }
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+
+  make DESTDIR=$pkgdir/ install
+}
+
+# vim:set ts=2 sw=2 et:

Added: mbeq_crash_fix.patch
===
--- mbeq_crash_fix.patch(rev 0)
+++ mbeq_crash_fix.patch2011-06-05 21:07:33 UTC (rev 126505)
@@ -0,0 +1,39 @@
+diff -Nru swh-plugins-0.4.15.orig/mbeq_1197.c swh-plugins-0.4.15/mbeq_1197.c
+--- swh-plugins-0.4.15.orig/mbeq_1197.c2006-08-09 01:49:15.0 
+1000
 swh-plugins-0.4.15/mbeq_1197.c 2011-06-05 10:57:17.929107102 +1000
+@@ -457,7 +457,8 @@
+   #endif
+   
+   // Multiply the bins magnitudes by the coeficients
+-  for (i = 0; i  FFT_LENGTH/2; i++) {
++  comp[0] *= coefs[0];
++  for (i = 1; i  FFT_LENGTH/2; i++) {
+   comp[i] *= coefs[i];
+   comp[FFT_LENGTH-i] *= coefs[i];
+   }
+diff -Nru swh-plugins-0.4.15.orig/mbeq_1197.so.c 
swh-plugins-0.4.15/mbeq_1197.so.c
+--- swh-plugins-0.4.15.orig/mbeq_1197.so.c 2003-10-22 02:13:40.0 
+1000
 swh-plugins-0.4.15/mbeq_1197.so.c  2011-06-05 10:57:52.265774336 +1000
+@@ -446,7 +446,8 @@
+   #endif
+   
+   // Multiply the bins magnitudes by the coeficients
+-  for (i = 0; i  FFT_LENGTH/2; i++) {
++  comp[0] *= coefs[0];
++  for (i = 1; i  FFT_LENGTH/2; i++) {
+   comp[i] *= coefs[i];
+   comp[FFT_LENGTH-i] *= coefs[i];
+   }
+diff -Nru swh-plugins-0.4.15.orig/mbeq_1197.xml 
swh-plugins-0.4.15/mbeq_1197.xml
+--- swh-plugins-0.4.15.orig/mbeq_1197.xml  2005-06-01 19:51:58.0 
+1000
 swh-plugins-0.4.15/mbeq_1197.xml   2011-06-05 10:57:39.335774121 +1000
+@@ -171,7 +171,8 @@
+ #endif
+ 
+   // Multiply the bins magnitudes by the coeficients
+-  for (i = 0; i  FFT_LENGTH/2; i++) {
++  comp[0] *= coefs[0];
++  for (i = 1; i  FFT_LENGTH/2; i++) {
+   comp[i] *= coefs[i];
+   comp[FFT_LENGTH-i] *= coefs[i];
+   }