summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-07-01 20:43:00 +0000
committer Eric Hameleers <alien@slackware.com>2020-07-01 20:43:00 +0000
commit872faf06c87ff851d575f38ab8b73935363a6d49 (patch)
tree8640092f20d0015a5c5236fbb11461c9b38acfb7
parent003aebb69d62aac4968a605f003872759f433436 (diff)
downloadasb-872faf06c87ff851d575f38ab8b73935363a6d49.tar.gz
asb-872faf06c87ff851d575f38ab8b73935363a6d49.tar.xz
zyn-fusion: replace hard-coded paths in the code which render the program largely useless as a Slackware package
-rwxr-xr-xzyn-fusion/build/zyn-fusion.SlackBuild9
1 files changed, 8 insertions, 1 deletions
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 <alien@slackware.com>
# * Initial build.
+# 3.0.5-2: 01/jun/2020 by Eric Hameleers <alien@slackware.com>
+# * 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: