[arch-commits] Commit in stochas/repos (3 files)
David Runge
dvzrv at gemini.archlinux.org
Thu Nov 11 12:08:59 UTC 2021
Date: Thursday, November 11, 2021 @ 12:08:59
Author: dvzrv
Revision: 1042019
archrelease: copy trunk to community-x86_64
Added:
stochas/repos/community-x86_64/
stochas/repos/community-x86_64/PKGBUILD
(from rev 1042018, stochas/trunk/PKGBUILD)
stochas/repos/community-x86_64/stochas-1.3.4-devendor_juce.patch
(from rev 1042018, stochas/trunk/stochas-1.3.4-devendor_juce.patch)
-----------------------------------+
PKGBUILD | 66 ++++++++++++++++++++++++++++++++++++
stochas-1.3.4-devendor_juce.patch | 30 ++++++++++++++++
2 files changed, 96 insertions(+)
Copied: stochas/repos/community-x86_64/PKGBUILD (from rev 1042018, stochas/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-11-11 12:08:59 UTC (rev 1042019)
@@ -0,0 +1,66 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=Stochas
+pkgname=stochas
+pkgver=1.3.4
+pkgrel=3
+pkgdesc="A probabilistic polyrhythmic sequencer"
+arch=('x86_64')
+url="https://surge-synth-team.org/stochas"
+license=('GPL3')
+groups=(pro-audio vst3-plugins)
+depends=(gcc-libs glibc hicolor-icon-theme libpng zlib)
+makedepends=(alsa-lib cmake flac freetype2 gendesk jack libogg libvorbis libx11 libxcursor libxinerama libxrandr juce)
+checkdepends=()
+optdepends=(
+ 'jack: to use standalone with JACK'
+ 'vst3-host: for VST3 plugin'
+)
+source=(
+ "${pkgname}-${pkgver}.tar.gz::https://github.com/surge-synthesizer/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
+ "${pkgname}-1.3.4-devendor_juce.patch"
+)
+sha512sums=('fc2935d0e1ade8abcbcb0a5e5e03c741f45d2bb03a4f070a40848a9e62b6e877275ae18e68e33bcbca17566435f190a4ca985a09a2e7411ba404e9243382bab8'
+ '32da969ddd4693c4b753269cc4169487dd7bcf42551f1e20ee8a9d9d23d24f850ffde2f7228863ad0a92e461680e885ee71444f8ba5c440b3dbc242a792b435c')
+b2sums=('8051303f509c3ebcbf70eb80caefedf48152f3739c2e9181dc8907ad976b944400f5678cac2cadc1eec51966896321ba63020a8acb53431abb1d71cd075ddfa9'
+ 'f57cc2bd496c49f8cc55429031330ebc54fe202d18d4b719070b1f550dbb5f5ffb01fe9e7148a898b3b62acfcc1410fbdc6c56de103364c4d91f0660cf5a2fdb')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ patch -Np1 -i ../"${pkgname}-1.3.4-devendor_juce.patch"
+
+ gendesk -n \
+ --pkgname "org.surge-synth-team.${_name}" \
+ --pkgdesc "${pkgdesc}" \
+ --exec "${_name}" \
+ --name "${_name}" \
+ --icon "org.surge-synth-team.${_name}" \
+ --genericname "Audio Sequencer" \
+ --categories "AudioVideo;Audio"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ export CFLAGS+=" -DNDEBUG"
+ export CXXFLAGS+=" -DNDEBUG"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE='None' \
+ -DBoost_NO_BOOST_CMAKE=ON \
+ -Wno-dev \
+ -B build \
+ -S .
+ make VERBOSE=1 -C build
+}
+
+package() {
+ depends+=(libFLAC.so libasound.so libfreetype.so libjpeg.so libogg.so libvorbis.so libvorbisenc.so libvorbisfile.so)
+
+ cd "$pkgname-$pkgver"
+ # project has no install target :(
+ install -vDm 755 build/${pkgname}_artefacts/None/Standalone/${_name} -t "${pkgdir}/usr/bin/"
+ install -vDm 755 build/${pkgname}_artefacts/None/VST3/${_name}.vst3/Contents/${CARCH}-linux/${_name}.so \
+ -t "${pkgdir}/usr/lib/vst3/Stochas.vst3/Contents/${CARCH}-linux/"
+
+ install -vDm 644 *.desktop -t "${pkgdir}/usr/share/applications/"
+ install -vDm 644 image/app_logo_512.png "${pkgdir}/usr/share/icons/hicolor/512x512/apps/org.surge-synth-team.${_name}.png"
+}
Copied: stochas/repos/community-x86_64/stochas-1.3.4-devendor_juce.patch (from rev 1042018, stochas/trunk/stochas-1.3.4-devendor_juce.patch)
===================================================================
--- community-x86_64/stochas-1.3.4-devendor_juce.patch (rev 0)
+++ community-x86_64/stochas-1.3.4-devendor_juce.patch 2021-11-11 12:08:59 UTC (rev 1042019)
@@ -0,0 +1,30 @@
+diff -ruN a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt 2020-11-01 18:23:59.000000000 +0100
++++ b/CMakeLists.txt 2021-11-11 10:09:50.134726938 +0100
+@@ -50,7 +50,13 @@
+ # 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)
++find_package(JUCE COMPONENTS REQUIRED)
++include(FindPkgConfig)
++pkg_search_module(flac REQUIRED flac)
++pkg_search_module(ogg REQUIRED ogg)
++pkg_search_module(vorbis REQUIRED vorbis)
++pkg_search_module(vorbisenc REQUIRED vorbisenc)
++pkg_search_module(vorbisfile REQUIRED vorbisfile)
+
+ add_custom_target( git-info BYPRODUCTS ${CMAKE_BINARY_DIR}/geninclude/version.cpp
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
+@@ -174,6 +180,11 @@
+ assets # to include our images
+ juce::juce_audio_utils
+ juce::juce_audio_plugin_client
++ ${ogg_LIBRARIES}
++ ${flac_LIBRARIES}
++ ${vorbis_LIBRARIES}
++ ${vorbisenc_LIBRARIES}
++ ${vorbisfile_LIBRARIES}
+ )
+
+ if( APPLE )
More information about the arch-commits
mailing list