File stochas-cmake.patch of Package stochas

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d6c16c8..0af3573 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,7 +54,8 @@ message( STATUS "Is Synth: ${STOCHAS_IS_SYNTH}, Is Midi Effect: ${STOCHAS_IS_MID
 # I'm not sure at this point whether this has any effect. I know etting it to "Instrument" causes it to show as
 # VSTi in reaper whereas setting it to "Effect" causes it to show as VST
 set(STOCHAS_CATEGORY "Effect") # original was "Instrument"
-add_subdirectory(lib/JUCE)
+#add_subdirectory(lib/JUCE)
+find_package(JUCE CONFIG REQUIRED)
 
 add_custom_target( git-info BYPRODUCTS ${CMAKE_BINARY_DIR}/geninclude/version.cpp
   WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
@@ -92,7 +93,8 @@ juce_add_plugin(stochas
     COPY_PLUGIN_AFTER_BUILD ${STOCHAS_COPY_AFTER_BUILD}        # Should the plugin be installed to a default location after building?
     PLUGIN_MANUFACTURER_CODE AuVi               # allows compatibility with older patches from AV days
     PLUGIN_CODE Stoc
-    FORMATS VST3 ${VST2} AU Standalone     # The formats to build. Other valid formats are: AAX Unity VST AU AUv3
+    FORMATS VST3 ${VST2} LV2 Standalone     # The formats to build. Other valid formats are: AAX Unity VST AU AUv3
+    LV2URI "https://surge-synth-team.org/stochas"
     VST3_CATEGORIES ${STOCHAS_CATEGORY}
     USE_LEGACY_COMPATIBILITY_PLUGIN_CODE TRUE #needed to maintain plugin code compatibility with what we've released
     VST3_CAN_REPLACE_VST2 TRUE  #hopefully this will allow old projects to load
openSUSE Build Service is sponsored by