From 1c0ace8a12d1878847884dfe5fa32b440cc56827 Mon Sep 17 00:00:00 2001 From: Jesse Chappell Date: Wed, 15 Jun 2022 21:58:53 -0400 Subject: [PATCH] updated linux install.sh to install CLAP plugin in ~/.clap/ --- linux/install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/linux/install.sh b/linux/install.sh index c8f764e..0091d24 100755 --- a/linux/install.sh +++ b/linux/install.sh @@ -31,6 +31,23 @@ if [ -d ${BUILDDIR}/VST3/PaulXStretch.vst3 ] ; then echo "PaulXStretch VST3 plugin installed" fi +if [ -f ${BUILDDIR}/CLAP/PaulXStretch.clap ] ; then + #mkdir -p ${PREFIX}/lib/clap + if [ x"$SUDO_USER" != x ] ; then + CLAPDIR=`eval echo ~$SUDO_USER/.clap` + mkdir -p $CLAPDIR + chown $SUDO_USER:$SUDO_GROUP $CLAPDIR + cp -f ${BUILDDIR}/CLAP/PaulXStretch.clap $CLAPDIR/ + chown $SUDO_USER:$SUDO_GROUP $CLAPDIR/PaulXStretch.clap + else + CLAPDIR=$HOME/.clap + mkdir -p $CLAPDIR + cp -a ${BUILDDIR}/CLAP/PaulXStretch.clap $CLAPDIR/ + fi + + echo "PaulXStretch CLAP plugin installed in $CLAPDIR" +fi + echo "PaulXStretch application installed"