diff --git a/sources/plugins/hamburger/debian/changelog b/sources/plugins/hamburger/debian/changelog new file mode 100644 index 0000000..5434540 --- /dev/null +++ b/sources/plugins/hamburger/debian/changelog @@ -0,0 +1,5 @@ +hamburger (6:0.5-1kxstudio2) focal; urgency=medium + + * Initial package + + -- falkTX Sun, 17 Apr 2022 15:05:47 +0100 diff --git a/sources/plugins/hamburger/debian/control b/sources/plugins/hamburger/debian/control new file mode 100644 index 0000000..20f7218 --- /dev/null +++ b/sources/plugins/hamburger/debian/control @@ -0,0 +1,19 @@ +Source: hamburger +Section: sound +Priority: optional +Maintainer: falkTX +Build-Depends: debhelper-compat (= 13), + kxstudio-audio-plugin-tester (>= 13), + distrho-juce-7.0-dev (>= 6:7.0.12+git2025-09-14-1kxstudio1) +Standards-Version: 4.5.0 +Homepage: https://aviaryaudio.com/plugins/hamburgerv2 +XSC-KXStudio-VCS: https://github.com/Davit-G/Hamburger +Rules-Requires-Root: no + +Package: hamburger +Architecture: amd64 arm64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Provides: lv2-plugin, vst-plugin, vst3-plugin +Description: distortion on steroids + A distortion and dynamics plugin designed to tastefully saturate any sound. + Also capable of complete sonic destruction. diff --git a/sources/plugins/hamburger/debian/install b/sources/plugins/hamburger/debian/install new file mode 100644 index 0000000..9334768 --- /dev/null +++ b/sources/plugins/hamburger/debian/install @@ -0,0 +1,3 @@ +obj-*-linux-gnu/Hamburger_artefacts/Release/LV2/*.* /usr/lib/lv2/ +obj-*-linux-gnu/Hamburger_artefacts/Release/VST/*.* /usr/lib/vst/Hamburger.so +obj-*-linux-gnu/Hamburger_artefacts/Release/VST3/*.* /usr/lib/vst3/ diff --git a/sources/plugins/hamburger/debian/patches/01_local-vst2-lv2-build.patch b/sources/plugins/hamburger/debian/patches/01_local-vst2-lv2-build.patch new file mode 100644 index 0000000..e92dcc3 --- /dev/null +++ b/sources/plugins/hamburger/debian/patches/01_local-vst2-lv2-build.patch @@ -0,0 +1,123 @@ +--- hamburger-0.5.orig/CMakeLists.txt ++++ hamburger-0.5/CMakeLists.txt +@@ -76,23 +76,10 @@ project(Hamburger VERSION "${ProjectVers + # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Ofast") + # endif() + +-FetchContent_Declare( +- JUCE +- GIT_REPOSITORY https://github.com/juce-framework/JUCE.git +- GIT_TAG 51d11a2be6d5c97ccf12b4e5e827006e19f0555a +- GIT_PROGRESS TRUE +- GIT_SHALLOW 1 +-) +- +-FetchContent_MakeAvailable(JUCE) ++find_package(JUCE-7.0.12 REQUIRED) + + # set commit hash for use in general idk +-execute_process( +- COMMAND git log -1 --format=%h +- WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} +- OUTPUT_VARIABLE GIT_HASH +- OUTPUT_STRIP_TRAILING_WHITESPACE +-) ++set(GIT_HASH "0.5") + + + if(APPLE) +@@ -128,7 +115,7 @@ juce_add_plugin("${BaseTargetName}" + VST3_COPY_DIR "${outdir}" + VST_COPY_DIR "${outdir}" + AU_COPY_DIR "${outdir}" +- FORMATS VST3 Standalone AU # The formats to build. Other valid formats are: AAX Unity VST AU AUv3 ++ FORMATS LV2 VST VST3 + VST3_CATEGORIES Fx Distortion Dynamics + ) + +@@ -192,10 +179,10 @@ juce_add_binary_data("${BaseTargetName}B + ) + set_target_properties("${BaseTargetName}BinaryData" PROPERTIES POSITION_INDEPENDENT_CODE TRUE) + +-FetchContent_Declare (melatonin_perfetto +- GIT_REPOSITORY https://github.com/sudara/melatonin_perfetto.git +- GIT_SHALLOW 1 +- GIT_TAG origin/main) ++# FetchContent_Declare (melatonin_perfetto ++# GIT_REPOSITORY https://github.com/sudara/melatonin_perfetto.git ++# GIT_SHALLOW 1 ++# GIT_TAG origin/main) + + # FetchContent_Declare (melatonin_inspector + # GIT_REPOSITORY https://github.com/sudara/melatonin_inspector.git +@@ -203,21 +190,21 @@ FetchContent_Declare (melatonin_perfetto + # GIT_TAG origin/main + # SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/melatonin_inspector) + +-FetchContent_Declare (clap-juce-extensions +- GIT_REPOSITORY https://github.com/free-audio/clap-juce-extensions.git +- GIT_SHALLOW 1 +- GIT_TAG origin/main) ++# FetchContent_Declare (clap-juce-extensions ++# GIT_REPOSITORY https://github.com/free-audio/clap-juce-extensions.git ++# GIT_SHALLOW 1 ++# GIT_TAG origin/main) + +-FetchContent_MakeAvailable (clap-juce-extensions) ++# FetchContent_MakeAvailable (clap-juce-extensions) + + if (PERFETTO) + FetchContent_MakeAvailable (melatonin_perfetto) + endif() + + +-clap_juce_extensions_plugin(TARGET "${BaseTargetName}" +-CLAP_ID "com.AviaryAudio.${PluginName}" +-CLAP_FEATURES effect "distortion analog compressor" audio-effect) ++# clap_juce_extensions_plugin(TARGET "${BaseTargetName}" ++# CLAP_ID "com.AviaryAudio.${PluginName}" ++# CLAP_FEATURES effect "distortion analog compressor" audio-effect) + + target_link_libraries("${BaseTargetName}" + PRIVATE +--- hamburger-0.5.orig/PluginProcessor.h ++++ hamburger-0.5/PluginProcessor.h +@@ -22,11 +22,11 @@ + // profiling + // #include + +-#include "clap-juce-extensions/clap-juce-extensions.h" ++// #include "clap-juce-extensions/clap-juce-extensions.h" + + + //============================================================================== +-class AudioPluginAudioProcessor : public juce::AudioProcessor, public clap_juce_extensions::clap_properties ++class AudioPluginAudioProcessor : public juce::AudioProcessor + + { + public: +@@ -117,4 +117,4 @@ private: + + + JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(AudioPluginAudioProcessor) +-}; +\ No newline at end of file ++}; +--- hamburger-0.5.orig/gui/PresetPanel.h ++++ hamburger-0.5/gui/PresetPanel.h +@@ -46,7 +46,7 @@ public: + } + + const juce::Typeface::Ptr quicksandTypeface = juce::Typeface::createSystemTypefaceFor(BinaryData::QuicksandBold_ttf, BinaryData::QuicksandBold_ttfSize); +- Font quicksandFont = juce::Font(FontOptions(quicksandTypeface)); ++ Font quicksandFont = juce::Font(quicksandTypeface); + + void initFiles(bool ignoreCollapsedStates = false) + { +@@ -553,4 +553,4 @@ private: + CustomListBoxModel listBoxModel; + + JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PresetPanel) +-}; +\ No newline at end of file ++}; diff --git a/sources/plugins/hamburger/debian/patches/02_no-copy-build.patch b/sources/plugins/hamburger/debian/patches/02_no-copy-build.patch new file mode 100644 index 0000000..3bd05b7 --- /dev/null +++ b/sources/plugins/hamburger/debian/patches/02_no-copy-build.patch @@ -0,0 +1,13 @@ +--- hamburger-0.5.orig/CMakeLists.txt ++++ hamburger-0.5/CMakeLists.txt +@@ -111,10 +111,6 @@ juce_add_plugin("${BaseTargetName}" + IS_MIDI_EFFECT FALSE # Is this plugin a MIDI effect? + # EDITOR_WANTS_KEYBOARD_FOCUS TRUE/FALSE # Does the editor need keyboard focus? + +- COPY_PLUGIN_AFTER_BUILD TRUE # Should the plugin be installed to a default location after building? +- VST3_COPY_DIR "${outdir}" +- VST_COPY_DIR "${outdir}" +- AU_COPY_DIR "${outdir}" + FORMATS LV2 VST VST3 + VST3_CATEGORIES Fx Distortion Dynamics + ) diff --git a/sources/plugins/hamburger/debian/patches/series b/sources/plugins/hamburger/debian/patches/series new file mode 100644 index 0000000..b7f6938 --- /dev/null +++ b/sources/plugins/hamburger/debian/patches/series @@ -0,0 +1,2 @@ +01_local-vst2-lv2-build.patch +02_no-copy-build.patch diff --git a/sources/plugins/hamburger/debian/rules b/sources/plugins/hamburger/debian/rules new file mode 100755 index 0000000..8196329 --- /dev/null +++ b/sources/plugins/hamburger/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/kxstudio-audio-plugin.mk + +export LDFLAGS += -Wl,--version-script=$(CURDIR)/debian/hamburger.sym + +# many issues +export LV2LINT_SKIP = y + +override_dh_auto_configure: + dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release + +override_dh_auto_build: + dh_auto_build -- -j $(nproc) + cd obj-*-linux-gnu/Hamburger_artefacts/Release/VST && mv libHamburger.so Hamburger.so + +%: + dh $@ -Scmake diff --git a/sources/plugins/hamburger/debian/source/format b/sources/plugins/hamburger/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/sources/plugins/hamburger/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)