1 # Maintainer: David Runge <dvzrv@archlinux.org>
4 pkgname=(vst3sdk vst3sdk-docs)
6 _commit=358b72ee61bc67fb4592b0d492e0c6a1211ebf11 # 3.7.7_build_19
8 pkgdesc="VST 3 Plug-In SDK"
10 url="https://github.com/steinbergmedia/vst3sdk"
12 makedepends=(git rsync)
13 # upstream does not provide proper tarballs:
14 # https://github.com/steinbergmedia/vst3sdk/issues/65
16 git+https://github.com/steinbergmedia/$pkgname#commit=$_commit
17 git+https://github.com/steinbergmedia/vst3_base
18 git+https://github.com/steinbergmedia/vst3_cmake
19 git+https://github.com/steinbergmedia/vst3_doc
20 git+https://github.com/steinbergmedia/vst3_pluginterfaces
21 git+https://github.com/steinbergmedia/vst3_public_sdk
22 git+https://github.com/steinbergmedia/vstgui
24 $pkgname-3.7.7_build_19-public_sdk_gcc13.patch # https://github.com/steinbergmedia/vst3sdk/issues/112
33 '501dff8299ccf9aeba61a64331c3ac74ece89eee956bffff0e303653b566acfca5cba4957c8bafb883efe6cc78c34da64ec9870daf9f2c37e2734110b9cad1dd'
34 '0a110eb59709770f91b95049bf6ee151e5dcc1b8b63eb8016472b93bd34f4973a81d5491b55f9081e0e8d82588ad951b09afd1d0d3cf6f6967ea606b8fed881b')
42 'e39e1353fdc22f7d93b6f89f8242fafddd56422a03df1cb26e81a3874456c49029a3726b43223fe21231eff6fe240e1216f3dca36a0e5297c9c0d43ab390bcd9'
43 '7671532b2cd7659266c99844faf8756bcc78b403fd85eae458f5a9084e50741d70b75effb71321c2ca5d244f36baf5dcf147613a7f7441c1319455da61a9cb88')
46 # upstream does not provide a pkg-config integration:
47 # https://github.com/steinbergmedia/vst3sdk/issues/68
48 sed -e "s/VERSION/$pkgver/" -i $pkgname.pc
52 git config submodule.base.url ../vst3_base
53 git config submodule.cmake.url ../vst3_cmake
54 git config submodule.doc.url ../vst3_doc
55 git config submodule.pluginterfaces.url ../vst3_pluginterfaces
56 git config submodule.public.sdk.url ../vst3_public_sdk
57 git config submodule.vstgui4.url ../vstgui
58 git -c protocol.file.allow=always submodule update
62 git apply -3 ../../$pkgname-3.7.7_build_19-public_sdk_gcc13.patch
70 install -vDm 644 ../$pkgname.pc -t "$pkgdir/usr/lib/pkgconfig/"
71 install -vdm 755 "$pkgdir/usr/src/$pkgname/"
72 rsync -r --exclude doc --exclude .git --exclude .github --exclude .gitignore --exclude .gitattributes . "$pkgdir/usr/src/$pkgname/"
73 install -vDm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
74 install -vDm 644 base/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.base.txt"
75 install -vDm 644 public.sdk/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.public.sdk.txt"
76 install -vDm 644 cmake/modules/*.cmake -t "$pkgdir/usr/lib/cmake/$pkgname/"
79 package_vst3sdk-docs() {
80 pkgdesc+=" - documentation"
82 install -vdm 755 "$pkgdir/usr/share/doc/$pkgname/"
84 rsync -r --exclude .git --exclude .github --exclude .gitignore --exclude .gitattributes . "$pkgdir/usr/share/doc/$pkgname/"