From d9f54ceaf0c9afd275c19c29ef37478c5cd9af58 Mon Sep 17 00:00:00 2001 From: Anthony Thompson Date: Sun, 2 Oct 2022 11:42:02 +1100 Subject: [PATCH 1/2] New package: yabridge-4.0.2 --- .../yabridge/patches/wine-version-check.diff | 11 ++++++ srcpkgs/yabridge/template | 39 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 srcpkgs/yabridge/patches/wine-version-check.diff create mode 100644 srcpkgs/yabridge/template diff --git a/srcpkgs/yabridge/patches/wine-version-check.diff b/srcpkgs/yabridge/patches/wine-version-check.diff new file mode 100644 index 000000000000..cb061fb213a5 --- /dev/null +++ b/srcpkgs/yabridge/patches/wine-version-check.diff @@ -0,0 +1,11 @@ +--- a/meson.build 2022-06-27 23:54:16.000000000 +1000 ++++ b/meson.build 2022-10-03 11:53:08.442051982 +1100 +@@ -135,7 +135,7 @@ + # + # https://bugs.winehq.org/show_bug.cgi?id=49138 + wine_version = run_command( +- 'sh', '-c', '''wine --version | grep --only-matching -P '[0-9]+\.[0-9]+' | head -n1''', ++ 'sh', '-c', '''wine --version | wine --version | sed 's/[a-zA-Z-]//g' | head -n1''', + check : false + ) + if wine_version.returncode() == 0 diff --git a/srcpkgs/yabridge/template b/srcpkgs/yabridge/template new file mode 100644 index 000000000000..1fd9e60bb609 --- /dev/null +++ b/srcpkgs/yabridge/template @@ -0,0 +1,39 @@ +# Template file for 'yabridge' +pkgname=yabridge +version=4.0.2 +revision=1 +archs="x86_64" +build_style=meson +hostmakedepends="ninja pkg-config cmake git $(vopt_if with_32bit "gcc-multilib")" +makedepends="wine-tools wine-devel libxcb-devel libxcb $(vopt_if with_32bit "wine-devel-32bit") $(vopt_if with_32bit "libxcb-devel-32bit")" +depends="wine $(vopt_if with_32bit "wine-32bit")" +short_desc="Use Windows 32bit and 64bit VST2 and VST3 plugins in Linux 64bit host" +maintainer="Anthony Thompson " +license="GPL-3.0-or-later" +homepage="https://github.com/robbert-vdh/yabridge" +distfiles="https://github.com/robbert-vdh/yabridge/archive/refs/tags/${version}.tar.gz" +checksum=86fcd65b6f3dd5cf60c2afa476f63959a2cc4ef4d4629810916739d7af645f01 +build_options="with_32bit" +build_options_default="with_32bit" + +do_configure() { + cd ${wrksrc} + meson setup build --buildtype=release --cross-file=cross-wine.conf --unity=on --unity-size=1000 $(vopt_if with_32bit "-Dbitbridge=true") +} + +do_build() { + ninja -C build/ +} + +do_install() { + cd ${wrksrc}/build + vbin yabridge-host.exe + vbin yabridge-host.exe.so + vopt_if with_32bit vbin yabridge-host-32.exe.so + vopt_if with_32bit vbin yabridge-host-32.exe + vmkdir usr/lib + vcopy libyabridge-chainloader-vst2.so /usr/lib + vcopy libyabridge-vst2.so /usr/lib + vcopy libyabridge-chainloader-vst3.so /usr/lib + vcopy libyabridge-vst3.so /usr/lib +} From d6bcdd31e3bbcb49237fa9e3c1494547e5438157 Mon Sep 17 00:00:00 2001 From: Anthony Thompson Date: Mon, 3 Oct 2022 13:20:03 +1100 Subject: [PATCH 2/2] fixed patch file --- srcpkgs/yabridge/patches/wine-version-check.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/yabridge/patches/wine-version-check.diff b/srcpkgs/yabridge/patches/wine-version-check.diff index cb061fb213a5..a51df0b33032 100644 --- a/srcpkgs/yabridge/patches/wine-version-check.diff +++ b/srcpkgs/yabridge/patches/wine-version-check.diff @@ -5,7 +5,7 @@ # https://bugs.winehq.org/show_bug.cgi?id=49138 wine_version = run_command( - 'sh', '-c', '''wine --version | grep --only-matching -P '[0-9]+\.[0-9]+' | head -n1''', -+ 'sh', '-c', '''wine --version | wine --version | sed 's/[a-zA-Z-]//g' | head -n1''', ++ 'sh', '-c', '''wine --version | wine --version | grep --only-matching -E '[0-9]+\.[0-9]+' | head -n1''', check : false ) if wine_version.returncode() == 0