summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2018-09-12 08:25:32 +0000
committerbill-auger <mr.j.spam.me@gmail.com>2018-09-30 04:27:49 -0400
commit413017bac5d7da957a207a004778899d7ee914e6 (patch)
tree1409e44ea03e004b44506c60549d6fc81aaa73f3
parentc841a41569ad9aa6beffe5ddb8952b426a8ece45 (diff)
downloadabslibre-413017bac5d7da957a207a004778899d7ee914e6.tar.gz
abslibre-413017bac5d7da957a207a004778899d7ee914e6.tar.bz2
abslibre-413017bac5d7da957a207a004778899d7ee914e6.zip
add 'alsaequal'
-rw-r--r--pcr-testing/alsaequal/PKGBUILD55
-rw-r--r--pcr-testing/alsaequal/alsaequal.install7
-rw-r--r--pcr-testing/alsaequal/caps_9.x.patch22
-rw-r--r--pcr-testing/alsaequal/false_error.patch13
-rw-r--r--pcr-testing/alsaequal/makefile.patch13
5 files changed, 110 insertions, 0 deletions
diff --git a/pcr-testing/alsaequal/PKGBUILD b/pcr-testing/alsaequal/PKGBUILD
new file mode 100644
index 000000000..d77e1e273
--- /dev/null
+++ b/pcr-testing/alsaequal/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: bill-auger <bill-auger@programmer.net>
+# Maintainer (AUR): Jens John <asterisk@2ion.de>
+# Past maintainer: Alad Wenter <https://wiki.archlinux.org/index.php/Special:EmailUser/Alad>
+# Contributors:
+# * Alireza Savand <alireza.savand@gmail.com>
+# * Maxime de Roucy <maxime.deroucy@gmail.com>
+# * Xyne <ac xunilhcra enyx, backwards>
+# * speeddefrost
+# * stefanr
+# * Bjorn Neergaard <bjorn@neersighted.com>
+
+
+pkgname=alsaequal
+pkgver=0.6
+pkgrel=16
+
+pkgdesc='Real-time adjustable equalizer plugin for ALSA sound server'
+url=https://web.archive.org/web/20161105202833/http://thedigitalmachine.net/alsaequal.html
+license=('GPL2')
+arch=('armv7' 'i686' 'x86_64')
+
+depends=('alsa-lib' 'caps')
+optdepends=('swh-plugins: to use the mbeq equalizer (15-band)')
+install=alsaequal.install
+source=(https://launchpad.net/ubuntu/+archive/primary/+files/alsaequal_${pkgver}.orig.tar.bz2
+ 'makefile.patch'
+ 'false_error.patch'
+ 'caps_9.x.patch')
+sha256sums=('916e7d152added24617efc350142438a46099efe062bd8781d36dbf10b4e6ff0'
+ 'c3bde63c45066f26fec21a38f6b4fc70d1fe534b9d20c4a9655fc15004c03792'
+ 'c1a02bfed6be6385e8ab4ebe7c9c3844e9c0937fbafe0f8d948842c2b7c9f7f0'
+ 'ba4e79459af3dab96a808ab581759a5a1cf82a1fe69d014cce959d7686e2313e')
+
+
+prepare()
+{
+ cd "$srcdir/$pkgname"
+
+ for f in "$srcdir"/*.patch ; do patch < "$f" ; done ;
+}
+
+build()
+{
+ cd "$srcdir/$pkgname"
+
+ make
+}
+
+package()
+{
+ cd "$srcdir/$pkgname"
+
+ install -dm755 "$pkgdir"/usr/lib/alsa-lib
+ make DESTDIR="$pkgdir" install
+}
diff --git a/pcr-testing/alsaequal/alsaequal.install b/pcr-testing/alsaequal/alsaequal.install
new file mode 100644
index 000000000..35add9be3
--- /dev/null
+++ b/pcr-testing/alsaequal/alsaequal.install
@@ -0,0 +1,7 @@
+post_install()
+{
+ cat << MSG
+==> See the Arch ALSA wiki page for configuration instructions
+ https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#System-wide_equalizer
+MSG
+}
diff --git a/pcr-testing/alsaequal/caps_9.x.patch b/pcr-testing/alsaequal/caps_9.x.patch
new file mode 100644
index 000000000..e5856b333
--- /dev/null
+++ b/pcr-testing/alsaequal/caps_9.x.patch
@@ -0,0 +1,22 @@
+
+--- ctl_equal.c 2009-01-31 23:06:47.000000000 +0100
++++ ctl_equal.c 2014-01-23 15:23:01.000000000 +0100
+@@ -167,7 +167,7 @@
+ snd_ctl_equal_t *equal;
+ const char *controls = ".alsaequal.bin";
+ const char *library = "/usr/lib/ladspa/caps.so";
+- const char *module = "Eq";
++ const char *module = "Eq10";
+ long channels = 2;
+ const char *sufix = " Playback Volume";
+ int err, i, index;
+--- pcm_equal.c 2010-02-01 23:55:00.000000000 +0100
++++ pcm_equal.c 2014-01-23 15:23:16.000000000 +0100
+@@ -151,7 +151,7 @@
+ snd_config_t *sconf = NULL;
+ const char *controls = ".alsaequal.bin";
+ const char *library = "/usr/lib/ladspa/caps.so";
+- const char *module = "Eq";
++ const char *module = "Eq10";
+ long channels = 2;
+ int err;
diff --git a/pcr-testing/alsaequal/false_error.patch b/pcr-testing/alsaequal/false_error.patch
new file mode 100644
index 000000000..a3221138d
--- /dev/null
+++ b/pcr-testing/alsaequal/false_error.patch
@@ -0,0 +1,13 @@
+--- ctl_eqaul.c 2013-02-06 22:09:11.000000000 +0100
++++ ctl_equal.c 2013-02-06 22:10:02.000000000 +0100
+@@ -263,8 +263,8 @@
+ for(i = 0; i < equal->num_input_controls; i++) {
+ if(equal->control_data->control[i].type == LADSPA_CNTRL_INPUT) {
+ index = equal->control_data->control[i].index;
+- if(equal->klass->PortDescriptors[index] !=
+- (LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL)) {
++ if(equal->klass->PortDescriptors[index] &
++ (LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL) == 0) {
+ SNDERR("Problem with control file %s, %d.", controls, index);
+ return -1;
+ }
diff --git a/pcr-testing/alsaequal/makefile.patch b/pcr-testing/alsaequal/makefile.patch
new file mode 100644
index 000000000..20baf11bd
--- /dev/null
+++ b/pcr-testing/alsaequal/makefile.patch
@@ -0,0 +1,13 @@
+--- Makefile 2009-08-27 18:09:24.000000000 -0400
++++ Makefile 2009-08-27 18:09:49.000000000 -0400
+@@ -45,8 +45,8 @@
+
+ install: all
+ @echo Installing...
+- $(Q)install -m 644 $(SND_PCM_BIN) ${DESTDIR}/usr/lib/alsa-lib/
+- $(Q)install -m 644 $(SND_CTL_BIN) ${DESTDIR}/usr/lib/alsa-lib/
++ $(Q)install -m 755 $(SND_PCM_BIN) ${DESTDIR}/usr/lib/alsa-lib/
++ $(Q)install -m 755 $(SND_CTL_BIN) ${DESTDIR}/usr/lib/alsa-lib/
+
+ uninstall:
+ @echo Un-installing...