git » vst3sdk.git » commit a2969d3

Upgrade to 3.7.7_build_19.

author David Runge
2023-05-07 18:06:33 UTC
committer David Runge
2023-05-07 18:06:33 UTC
parent 811efa3080dfdee1e3fb72e756d2088ee8e65cc8

Upgrade to 3.7.7_build_19.

Add patch for gcc >= 13: https://github.com/steinbergmedia/vst3sdk/issues/112
Apply VCS packaging guidelines (for submodules).
Move sources to /usr/src/vst3sdk (which appears to be more appropriate).

PKGBUILD +16 -8
vst3sdk-3.7.7_build_19-public_sdk_gcc13.patch +24 -0
vst3sdk.pc +1 -1

diff --git a/PKGBUILD b/PKGBUILD
index 4c209f5..552fd1a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,9 +2,9 @@
 
 pkgbase=vst3sdk
 pkgname=(vst3sdk vst3sdk-docs)
-pkgver=3.7.6_build_18
-_commit=05c4a9763f311a58fe3f34b68a199e5eea92e2b4  # 3.7.6_build_18
-pkgrel=2
+pkgver=3.7.7_build_19
+_commit=358b72ee61bc67fb4592b0d492e0c6a1211ebf11  # 3.7.7_build_19
+pkgrel=1
 pkgdesc="VST 3 Plug-In SDK"
 arch=(any)
 url="https://github.com/steinbergmedia/vst3sdk"
@@ -21,6 +21,7 @@ source=(
   git+https://github.com/steinbergmedia/vst3_public_sdk
   git+https://github.com/steinbergmedia/vstgui
   $pkgname.pc
+  $pkgname-3.7.7_build_19-public_sdk_gcc13.patch  # https://github.com/steinbergmedia/vst3sdk/issues/112
 )
 sha512sums=('SKIP'
             'SKIP'
@@ -29,7 +30,8 @@ sha512sums=('SKIP'
             'SKIP'
             'SKIP'
             'SKIP'
-            'ac97d8b8de5d18d3d0bf955358708ca9a36847b9e5350b6089037547d7404fccb91efbc74a9e0ee12c7159861539ecfbed08b79f531abd392e9321d957e26bd6')
+            '501dff8299ccf9aeba61a64331c3ac74ece89eee956bffff0e303653b566acfca5cba4957c8bafb883efe6cc78c34da64ec9870daf9f2c37e2734110b9cad1dd'
+            '0a110eb59709770f91b95049bf6ee151e5dcc1b8b63eb8016472b93bd34f4973a81d5491b55f9081e0e8d82588ad951b09afd1d0d3cf6f6967ea606b8fed881b')
 b2sums=('SKIP'
         'SKIP'
         'SKIP'
@@ -37,7 +39,8 @@ b2sums=('SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
-        'b055a1a8031eb0c3624177a97853c3b7beeac7384d785261861cfaf92672d934293e4149e86844ba10389726c0def451693e1b53c35a0197286df7ff8e612760')
+        'e39e1353fdc22f7d93b6f89f8242fafddd56422a03df1cb26e81a3874456c49029a3726b43223fe21231eff6fe240e1216f3dca36a0e5297c9c0d43ab390bcd9'
+        '7671532b2cd7659266c99844faf8756bcc78b403fd85eae458f5a9084e50741d70b75effb71321c2ca5d244f36baf5dcf147613a7f7441c1319455da61a9cb88')
 
 prepare() {
   # upstream does not provide a pkg-config integration:
@@ -52,7 +55,12 @@ prepare() {
   git config submodule.pluginterfaces.url ../vst3_pluginterfaces
   git config submodule.public.sdk.url ../vst3_public_sdk
   git config submodule.vstgui4.url ../vstgui
-  git submodule update
+  git -c protocol.file.allow=always submodule update
+
+  (
+    cd public.sdk
+    git apply -3 ../../$pkgname-3.7.7_build_19-public_sdk_gcc13.patch
+  )
 }
 
 package_vst3sdk() {
@@ -60,8 +68,8 @@ package_vst3sdk() {
 
   cd $pkgbase
   install -vDm 644 ../$pkgname.pc -t "$pkgdir/usr/lib/pkgconfig/"
-  install -vdm 755 "$pkgdir/usr/share/$pkgname/"
-  rsync -r --exclude doc --exclude .git --exclude .github --exclude .gitignore --exclude .gitattributes . "$pkgdir/usr/share/$pkgname/"
+  install -vdm 755 "$pkgdir/usr/src/$pkgname/"
+  rsync -r --exclude doc --exclude .git --exclude .github --exclude .gitignore --exclude .gitattributes . "$pkgdir/usr/src/$pkgname/"
   install -vDm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
   install -vDm 644 base/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.base.txt"
   install -vDm 644 public.sdk/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.public.sdk.txt"
diff --git a/vst3sdk-3.7.7_build_19-public_sdk_gcc13.patch b/vst3sdk-3.7.7_build_19-public_sdk_gcc13.patch
new file mode 100644
index 0000000..e7c52a1
--- /dev/null
+++ b/vst3sdk-3.7.7_build_19-public_sdk_gcc13.patch
@@ -0,0 +1,24 @@
+diff --git i/source/vst/moduleinfo/moduleinfo.h w/source/vst/moduleinfo/moduleinfo.h
+index ecf528b..49f2827 100644
+--- i/source/vst/moduleinfo/moduleinfo.h
++++ w/source/vst/moduleinfo/moduleinfo.h
+@@ -39,6 +39,7 @@
+ 
+ #include <string>
+ #include <vector>
++#include <cstdint>
+ 
+ //------------------------------------------------------------------------
+ namespace Steinberg {
+diff --git i/source/vst/moduleinfo/moduleinfoparser.h w/source/vst/moduleinfo/moduleinfoparser.h
+index 910cbf5..e052ac2 100644
+--- i/source/vst/moduleinfo/moduleinfoparser.h
++++ w/source/vst/moduleinfo/moduleinfoparser.h
+@@ -41,6 +41,7 @@
+ #include <iostream>
+ #include <optional>
+ #include <string_view>
++#include <limits>
+ 
+ //------------------------------------------------------------------------
+ namespace Steinberg::ModuleInfoLib {
diff --git a/vst3sdk.pc b/vst3sdk.pc
index ab1498e..d4f945e 100644
--- a/vst3sdk.pc
+++ b/vst3sdk.pc
@@ -1,5 +1,5 @@
 Name: vst3sdk
 Description: VST 3 Plug-In SDK
 Version: VERSION
-Cflags: -I/usr/share/vst3sdk
+Cflags: -I/usr/src/vst3sdk
 Libs: