git: e4bae699f691 - main - audio/noise-suppression-for-voice-lv2: Fix build breakage due to architecture string in plist

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 10 Jul 2023 03:27:04 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e4bae699f691157ae5e50b97170cc65198d28593

commit e4bae699f691157ae5e50b97170cc65198d28593
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-10 03:26:10 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-10 03:26:10 +0000

    audio/noise-suppression-for-voice-lv2: Fix build breakage due to architecture string in plist
    
    Reported by:    fallout
---
 audio/noise-suppression-for-voice-lv2/Makefile  | 2 ++
 audio/noise-suppression-for-voice-lv2/pkg-plist | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/audio/noise-suppression-for-voice-lv2/Makefile b/audio/noise-suppression-for-voice-lv2/Makefile
index 9714cc3afc94..f0b28acad7b0 100644
--- a/audio/noise-suppression-for-voice-lv2/Makefile
+++ b/audio/noise-suppression-for-voice-lv2/Makefile
@@ -22,6 +22,8 @@ GH_ACCOUNT=	werman
 CMAKE_OFF=	BUILD_VST_PLUGIN # https://github.com/werman/noise-suppression-for-voice/issues/65
 CXXFLAGS+=	-DJUCE_CUSTOM_VST3_SDK=1
 
+PLIST_SUB=	XARCH=${ARCH:S/amd64/x86_64/}
+
 post-extract: # remove bundled JUCE
 	@${RM} -rf ${WRKSRC}/external/JUCE
 
diff --git a/audio/noise-suppression-for-voice-lv2/pkg-plist b/audio/noise-suppression-for-voice-lv2/pkg-plist
index 4c3264186b26..dcf464e8be5d 100644
--- a/audio/noise-suppression-for-voice-lv2/pkg-plist
+++ b/audio/noise-suppression-for-voice-lv2/pkg-plist
@@ -7,4 +7,4 @@ lib/lv2/rnnoise_stereo.lv2/dsp.ttl
 lib/lv2/rnnoise_stereo.lv2/librnnoise_stereo.so
 lib/lv2/rnnoise_stereo.lv2/manifest.ttl
 lib/lv2/rnnoise_stereo.lv2/ui.ttl
-lib/vst3/rnnoise.vst3/Contents/x86_64-linux/rnnoise.so
+lib/vst3/rnnoise.vst3/Contents/%%XARCH%%-linux/rnnoise.so