From 0f8f2057e8eec28bb4de0c77ac9f50586924a231 Mon Sep 17 00:00:00 2001 From: Paper Date: Sat, 20 Mar 2021 23:19:47 +0100 Subject: [PATCH 1/5] New package: lsp-plugins-1.1.30 --- .../00-makefile-test-remove-cflags.patch | 13 +++++++++++++ srcpkgs/lsp-plugins/template | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 srcpkgs/lsp-plugins/patches/00-makefile-test-remove-cflags.patch create mode 100644 srcpkgs/lsp-plugins/template diff --git a/srcpkgs/lsp-plugins/patches/00-makefile-test-remove-cflags.patch b/srcpkgs/lsp-plugins/patches/00-makefile-test-remove-cflags.patch new file mode 100644 index 000000000000..3df0544cfbb3 --- /dev/null +++ b/srcpkgs/lsp-plugins/patches/00-makefile-test-remove-cflags.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 2d9cb79..138d221 100644 +--- a/Makefile ++++ b/Makefile +@@ -108,8 +108,6 @@ trace: export EXE_FLAGS += -g3 + trace: compile + + test: OBJDIR = $(TESTDIR) +-test: export CFLAGS += -O2 -DLSP_TESTING -DLSP_TRACE -g3 -fstack-protector +-test: export CXXFLAGS += -O2 -DLSP_TESTING -DLSP_TRACE -g3 -fstack-protector + test: export EXE_TEST_FLAGS += -g3 + test: export MAKE_OPTS += LSP_TESTING=1 + test: export BUILD_MODULES = jack diff --git a/srcpkgs/lsp-plugins/template b/srcpkgs/lsp-plugins/template new file mode 100644 index 000000000000..74ba89b2f84b --- /dev/null +++ b/srcpkgs/lsp-plugins/template @@ -0,0 +1,17 @@ +# Template file for 'lsp-plugins' +pkgname=lsp-plugins +version=1.1.30 +revision=1 +build_style=gnu-makefile +hostmakedepends="pkgconf php" +makedepends="libsndfile-devel libX11-devel libglvnd-devel lv2 cairo-devel ladspa-sdk jack-devel" +short_desc="Collection of free plugins compatible with LADSPA, LV2 and LinuxVST" +maintainer="Artur Sinila " +license="LGPL-3.0-or-later" +homepage="https://lsp-plug.in/" +distfiles="https://github.com/sadko4u/lsp-plugins/archive/refs/tags/${version}.tar.gz" +checksum=9cf43257729093c240375b3640b1514dff34b092b83b54a5ee68d7e8565c8f80 + +pre_build() { + CXXFLAGS="$CXXFLAGS -std=c++98" +} From 5b79f2043e820994b345ea1f2e7b401efcadfea7 Mon Sep 17 00:00:00 2001 From: Artur Sinila Date: Fri, 25 Jun 2021 22:07:03 +0300 Subject: [PATCH 2/5] zita-convolver-devel: add fftw-devel dependency --- srcpkgs/zita-convolver/template | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/srcpkgs/zita-convolver/template b/srcpkgs/zita-convolver/template index fb0371162b03..603fbd5099c1 100644 --- a/srcpkgs/zita-convolver/template +++ b/srcpkgs/zita-convolver/template @@ -1,11 +1,11 @@ # Template file for 'zita-convolver' pkgname=zita-convolver version=4.0.3 -revision=2 +revision=3 build_wrksrc="source" build_style=gnu-makefile make_install_args="LIBDIR=/usr/lib" -hostmakedepends="pkg-config" +hostmakedepends="pkgconf" makedepends="fftw-devel" short_desc="Fast partitioned convolution engine library" maintainer="silvernode " @@ -14,7 +14,9 @@ homepage="http://kokkinizita.linuxaudio.org/linuxaudio/" distfiles="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${version}.tar.bz2" checksum=9aa11484fb30b4e6ef00c8a3281eebcfad9221e3937b1beb5fe21b748d89325f -CXXFLAGS="-fPIC -ffast-math -funroll-loops" +pre_build() { + CXXFLAGS="$CXXFLAGS -fPIC" +} post_install() { # add missing symlink @@ -22,7 +24,7 @@ post_install() { } zita-convolver-devel_package() { - depends="${sourcepkg}-${version}_${revision}" + depends="${sourcepkg}-${version}_${revision} fftw-devel" short_desc+=" - development files" pkg_install() { vmove usr/include From 76c053a8892a7d84f28380bd2331f18caf44d49a Mon Sep 17 00:00:00 2001 From: Artur Sinila Date: Sat, 26 Jun 2021 04:00:10 +0300 Subject: [PATCH 3/5] New package: zam-plugins-3.14 --- .../zam-plugins/files/zam-plugins.directory | 5 + srcpkgs/zam-plugins/files/zam-plugins.menu | 30 +++++ srcpkgs/zam-plugins/template | 103 ++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 srcpkgs/zam-plugins/files/zam-plugins.directory create mode 100644 srcpkgs/zam-plugins/files/zam-plugins.menu create mode 100644 srcpkgs/zam-plugins/template diff --git a/srcpkgs/zam-plugins/files/zam-plugins.directory b/srcpkgs/zam-plugins/files/zam-plugins.directory new file mode 100644 index 000000000000..df902aee57a8 --- /dev/null +++ b/srcpkgs/zam-plugins/files/zam-plugins.directory @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=zam-plugins +Icon=zam-plugins +Type=Directory +Keywords=audio;sound;jackd;zam-plugins; diff --git a/srcpkgs/zam-plugins/files/zam-plugins.menu b/srcpkgs/zam-plugins/files/zam-plugins.menu new file mode 100644 index 000000000000..85963cd12796 --- /dev/null +++ b/srcpkgs/zam-plugins/files/zam-plugins.menu @@ -0,0 +1,30 @@ + + + Applications + + Multimedia + + zam-plugins + zam-plugins.directory + + com.zamaudio.zamautosat.desktop + com.zamaudio.zamaximx2.desktop + com.zamaudio.zamcomp.desktop + com.zamaudio.zamcompx2.desktop + com.zamaudio.zamdelay.desktop + com.zamaudio.zamdynamiceq.desktop + com.zamaudio.zameq2.desktop + com.zamaudio.zamgate.desktop + com.zamaudio.zamgatex2.desktop + com.zamaudio.zamgeq31.desktop + com.zamaudio.zamgrains.desktop + com.zamaudio.zamheadx2.desktop + com.zamaudio.zammulticompx2.desktop + com.zamaudio.zamphono.desktop + com.zamaudio.zamtube.desktop + com.zamaudio.zamulticomp.desktop + com.zamaudio.zamverb.desktop + + + + diff --git a/srcpkgs/zam-plugins/template b/srcpkgs/zam-plugins/template new file mode 100644 index 000000000000..383b3105d6b0 --- /dev/null +++ b/srcpkgs/zam-plugins/template @@ -0,0 +1,103 @@ +# Template file for 'zam-plugins' +pkgname=zam-plugins +version=3.14 +revision=1 +build_style=gnu-makefile +make_use_env=yes +make_build_args="HAVE_ZITA_CONVOLVER=true" +hostmakedepends="pkgconf git gendesk" +makedepends="libX11-devel libglvnd-devel liblo-devel jack-devel ladspa-sdk + libsamplerate-devel zita-convolver-devel" +# Use system zita-convolver instead of the vendored one +short_desc="LADSPA/LV2/VST/JACK audio plugins for high-quality processing" +maintainer="Artur Sinila " +license="GPL-2.0-or-later" +homepage="http://zamaudio.com/" +changelog="https://github.com/zamaudio/zam-plugins/blob/${version}/changelog" + +do_fetch() { + git clone --depth 1 --branch ${version} --single-branch \ + --recurse-submodules --shallow-submodules https://github.com/zamaudio/zam-plugins \ + zam-plugins-${version} +} + +# Huge thanks to David Runge , maintainer of zam-plugins in Arch Linux +post_install() { + _names=('zamaximx2' 'zamulticomp' 'zammulticompx2' 'zamautosat' 'zamcomp' + 'zamcompx2' 'zamdelay' 'zamdynamiceq' 'zameq2' 'zamgeq31' 'zamgate' + 'zamgatex2' 'zamgrains' 'zamheadx2' 'zamphono' 'zamtube' 'zamverb') + + declare -A exec_names=( + ["zamaximx2"]="ZaMaximX2" + ["zamulticomp"]="ZaMultiComp" + ["zamulticompx2"]="ZaMultiCompX2" + ["zamautosat"]="ZamAutoSat" + ["zamcomp"]="ZamComp" + ["zamcompx2"]="ZamCompX2" + ["zamdelay"]="ZamDelay" + ["zamdynamiceq"]="ZamDynamicEQ" + ["zameq2"]="ZamEQ2" + ["zamgeq31"]="ZamGEQ31" + ["zamgate"]="ZamGate" + ["zamgatex2"]="ZamGateX2" + ["zamgrains"]="ZamGrains" + ["zamheadx2"]="ZamHeadX2" + ["zamphono"]="ZamPhono" + ["zamtube"]="ZamTube" + ["zamverb"]="ZamVerb" + ) + declare -A comments=( + ["zamaximx2"]="Acts as a brickwall limiter for mastering in its default state, but can also be tweaked to raise the average level as a stereo maximizer without ever clipping" + ["zamulticomp"]="Mono multiband compressor, with 3 adjustable bands." + ["zamulticompx2"]="Stereo version of ZaMultiComp, with individual threshold controls for each band and real-time visualisation of comp curves." + ["zamautosat"]="An automatic saturation plugin, has been known to provide smooth levelling to live mic channels." + ["zamcomp"]="A powerful mono compressor strip" + ["zamcompx2"]="Stereo version of ZamComp with knee slew control" + ["zamdelay"]="A simple feedback delay unit with sync-to-host BPM feature and filter." + ["zamdynamiceq"]="A dynamic equalizer that changes its gain based on detecting a narrow band of frequencies." + ["zameq2"]="Two band parametric equaliser with high and low shelving circuits." + ["zamgeq31"]="31 band graphic equaliser, good for eq of live spaces, removing unwanted noise from a track etc." + ["zamgate"]="Gate plugin for ducking low gain sounds." + ["zamgatex2"]="Gate plugin for ducking low gain sounds, stereo version." + ["zamgrains"]="Granular Synthesizer" + ["zamheadx2"]="HRTF acoustic filtering plugin for directional sound." + ["zamphono"]="A collection of phono filters for restoring vinyl records, or preparing to cut new ones." + ["zamtube"]="Wave digital filter physical model of a triode tube amplifier stage, with modelled tone stacks from real guitar amplifiers" + ["zamverb"]="Reverb" + ) + declare -A generic=( + ["zamaximx2"]="Maximizer and brickwall limiter" + ["zamulticomp"]="Mono Multiband Compressor" + ["zamulticompx2"]="Stereo Multiband Compressor" + ["zamautosat"]="Automatic Saturation" + ["zamcomp"]="Mono Compressor" + ["zamcompx2"]="Stereo Compressor" + ["zamdelay"]="Delay" + ["zamdynamiceq"]="Dynamic Equalizer" + ["zameq2"]="2 Band Parametric Equalizer" + ["zamgeq31"]="31 Band Graphic Equalizer" + ["zamgate"]="Mono Gate" + ["zamgatex2"]="Stereo Gate" + ["zamgrains"]="Granular Synthesizer" + ["zamheadx2"]="HRTF Acoustic Filtering" + ["zamphono"]="Phono Filters" + ["zamtube"]="Tube Amplifier" + ["zamverb"]="Reverb" + ) + + # Generate *.desktop files for each plugin + for name in "${_names[@]}"; do + gendesk -n \ + --pkgname "com.zamaudio.${name}" \ + --name "${name}" \ + --exec "${exec_names[$name]}" \ + --pkgdesc "${comments[$name]}" \ + --genericname "${generic[$name]}" + done + + install -vDm 644 *.desktop -t ${DESTDIR}/usr/share/applications/ + vinstall ${FILESDIR}/zam-plugins.directory 644 usr/share/desktop-directories/ + vinstall ${FILESDIR}/zam-plugins.menu 644 etc/xdg/menus/applications-merged/ + vdoc README.md + vdoc changelog +} From b45e9e3d6bfabb7acb4f4075c63fd19a9358cd00 Mon Sep 17 00:00:00 2001 From: Artur Sinila Date: Sat, 26 Jun 2021 04:00:36 +0300 Subject: [PATCH 4/5] pulseeffects: update to 5.0.4 & fix greyed-out effects --- srcpkgs/pulseeffects/template | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/srcpkgs/pulseeffects/template b/srcpkgs/pulseeffects/template index 3b94e3dc873b..a0e2ab31d22c 100644 --- a/srcpkgs/pulseeffects/template +++ b/srcpkgs/pulseeffects/template @@ -1,20 +1,18 @@ # Template file for 'pulseeffects' pkgname=pulseeffects -version=5.0.3 +version=5.0.4 revision=1 build_style=meson -hostmakedepends="itstool pkg-config gettext" +hostmakedepends="itstool pkgconf gettext" makedepends="boost-devel glib-devel gsettings-desktop-schemas-devel gst-plugins-bad1-devel gtkmm-devel libebur128-devel lilv-devel - pipewire-devel python3-gobject-devel sratom-devel zita-convolver-devel - libsndfile-devel libbs2b-devel" -depends="calf gsettings-desktop-schemas gst-plugins-bad1 - gst-plugins-good1 pipewire python3-gobject python3-scipy zita-convolver - gstreamer1-pipewire" + pipewire-devel sratom-devel zita-convolver-devel + rubberband-devel libsamplerate-devel libsndfile-devel" +depends="calf gstreamer1-pipewire gst-plugins-good1 lsp-plugins zam-plugins" short_desc="Sound effects for systems using PipeWire" -maintainer="Orphaned " +maintainer="Artur Sinila " license="GPL-3.0-or-later" homepage="https://github.com/wwmm/pulseeffects" distfiles="https://github.com/wwmm/pulseeffects/archive/v${version}.tar.gz" -checksum=2e14858918b54bee5f6e4898cc803ae2170b4d624407fef39e0831b6584c4a4f -python_version=3 +checksum=3fa482e2261fe467e30c05e85a55904806b0dc141834fe8b5cfeffedb6da65e8 +conflicts="pulseeffects-legacy" From 7dcd220bff55f6c547d13433077c5f1941b5046c Mon Sep 17 00:00:00 2001 From: Artur Sinila Date: Sat, 26 Jun 2021 18:08:22 +0300 Subject: [PATCH 5/5] pulseeffects-legacy: fix greyed out effects --- srcpkgs/pulseeffects-legacy/template | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/srcpkgs/pulseeffects-legacy/template b/srcpkgs/pulseeffects-legacy/template index c38c8ef2d9ef..c3d05d450762 100644 --- a/srcpkgs/pulseeffects-legacy/template +++ b/srcpkgs/pulseeffects-legacy/template @@ -4,18 +4,16 @@ version=4.8.5 revision=1 wrksrc="pulseeffects-${version}" build_style=meson -hostmakedepends="itstool pkg-config gettext" +hostmakedepends="itstool pkgconf gettext" makedepends="boost-devel glib-devel gsettings-desktop-schemas-devel gst-plugins-bad1-devel gtkmm-devel libebur128-devel lilv-devel - pulseaudio-devel python3-gobject-devel sratom-devel - libsndfile-devel" -depends="calf gsettings-desktop-schemas gst-plugins-bad1 - gst-plugins-good1 pulseaudio python3-gobject python3-scipy" + pulseaudio-devel sratom-devel zita-convolver-devel + rubberband-devel libsamplerate-devel libsndfile-devel" +depends="calf gst-plugins-good1 lsp-plugins zam-plugins" short_desc="Sound effects for systems using PulseAudio (legacy)" -maintainer="Orphaned " +maintainer="Artur Sinila " license="GPL-3.0-or-later" homepage="https://github.com/wwmm/pulseeffects" distfiles="https://github.com/wwmm/pulseeffects/archive/v${version}.tar.gz" checksum=df1c4c4a9811c62a549822dacde3a9e36233ba3ec58817ae52a236f6181a507c -python_version=3 conflicts="pulseeffects"