From 872faf06c87ff851d575f38ab8b73935363a6d49 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 1 Jul 2020 20:43:00 +0000 Subject: zyn-fusion: replace hard-coded paths in the code which render the program largely useless as a Slackware package --- zyn-fusion/build/zyn-fusion.SlackBuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'zyn-fusion/build') diff --git a/zyn-fusion/build/zyn-fusion.SlackBuild b/zyn-fusion/build/zyn-fusion.SlackBuild index f44ad715..98a07a7b 100755 --- a/zyn-fusion/build/zyn-fusion.SlackBuild +++ b/zyn-fusion/build/zyn-fusion.SlackBuild @@ -33,6 +33,9 @@ # Changelog: # 3.0.5-1: 21/Jan/2020 by Eric Hameleers # * Initial build. +# 3.0.5-2: 01/jun/2020 by Eric Hameleers +# * Fix hard-coded paths preventing zyn-fusion from being useful, +# thanks to Bob Funk. # # Run 'sh zyn-fusion.SlackBuild' to build a Slackware package. # The package (.t?z) and .txt file as well as build logs are created in /tmp . @@ -44,7 +47,7 @@ PRGNAM=zyn-fusion PRGZYN=zynaddsubfx PRGFUSION=zyn-fusion-ui-src VERSION=${VERSION:-3.0.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:-" -j$(nproc) "} TAG=${TAG:-alien} @@ -172,6 +175,10 @@ mv -i libuv-v${LIBUV} ${PRGFUSION}-${VERSION}/deps/ # Replace it with a much more straightforward implementation. cp $SRCDIR/BashCompletion.cmake ${PRGZYN}-${VERSION}/cmake/BashCompletion.cmake +# Replace hard-coded '/opt/zyn-fusion' with '/usr/libexec/zyn-fusion': +sed -e "s,/opt/zyn-fusion,/usr/libexec/zyn-fusion," \ + -i $(grep -rl '/opt/zyn-fusion' zyn*) + echo Building ... # Prepare the ruby-zest UI component so the synth build can pick it up: -- cgit v1.2.3-65-gdbad