From 57bf7b3acf66415e6fc598151c01c0412cd3e5cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BClsmann?= Date: Wed, 10 Jan 2024 18:25:45 +0100 Subject: [PATCH 1/3] clap-example-host: fix audio ports --- packages/clap-example-host/PKGBUILD | 37 +++++++++++++++++------------ 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/packages/clap-example-host/PKGBUILD b/packages/clap-example-host/PKGBUILD index e89ed148..8eeac236 100644 --- a/packages/clap-example-host/PKGBUILD +++ b/packages/clap-example-host/PKGBUILD @@ -5,7 +5,7 @@ _name=clap-host # clap-host as pkgname is not ideal due to other hosts using that as a virtual provides pkgname=clap-example-host pkgver=1.0.3 -pkgrel=2 +pkgrel=3 pkgdesc='CLAP example audio plugin host' arch=(aarch64 x86_64) url='https://github.com/free-audio/clap-host' @@ -14,24 +14,31 @@ depends=(gcc-libs qt6-base) makedepends=(catch2 cmake rtaudio rtmidi) provides=(clap-host) groups=(pro-audio) -_clap_ref='d6cbd4f' -_clap_helpers_ref='15dd627' -source=("$pkgname-$pkgver.tar.gz::https://github.com/free-audio/$_name/archive/refs/tags/$pkgver.tar.gz" - "clap-$_clap_ref.tar.gz::https://github.com/free-audio/clap/archive/$_clap_ref.tar.gz" - "clap-helpers-$_clap_helpers_ref.tar.gz::https://github.com/free-audio/clap-helpers/archive/$_clap_helpers_ref.tar.gz") -sha256sums=('03b4a272cde2336024ba34c2b679ab55756e08bc72bc193b8738e9534602b2c2' - 'e5d52790eaccf124725c7511e18204f2caa25e662d853b0d50b1f4baade00d17' - 'd1c035d54743346d0e3735bd4d2b4f12868201b8ab49c716cf1e6a3b39fcf04e') -noextract=(clap-$_clap_ref.tar.gz clap-helpers-$_clap_helpers_ref.tar.gz) +_tag=a86f5474f325bb78c574cae82f51043806f75967 +source=("$_name::git+https://github.com/free-audio/$_name#tag=$_tag" + 'clap::git+https://github.com/free-audio/clap' + 'clap-helpers::git+https://github.com/free-audio/clap-helpers') +sha256sums=('SKIP' + 'SKIP' + 'SKIP') + +pkgver() { + cd $_name + #git describe --tags + echo 1.0.3 +} prepare() { - cd $_name-$pkgver - bsdtar -xf ../clap-$_clap_ref.tar.gz -C clap --strip-components 1 - bsdtar -xf ../clap-helpers-$_clap_helpers_ref.tar.gz -C clap-helpers --strip-components 1 + cd $_name + for _mod in clap clap-helpers; do + git submodule init $_mod + git config submodule.$_mod.url "$srcdir/$_mod" + done + git -c protocol.file.allow=always submodule update } build() { - cmake -B build-$pkgname -S $_name-$pkgver \ + cmake -B build-$pkgname -S $_name \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCLAP_BUILD_TESTS=On \ @@ -47,6 +54,6 @@ check() { package() { depends+=(hicolor-icon-theme librtaudio.so librtmidi.so) DESTDIR="$pkgdir" cmake --install build-$pkgname - cd $_name-$pkgver + cd $_name install -vDm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname } From a98a3938649702eb25b8ec19d21c347e56ce0712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BClsmann?= Date: Mon, 17 Jun 2024 19:42:28 +0200 Subject: [PATCH 2/3] git makedep --- packages/clap-example-host/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clap-example-host/PKGBUILD b/packages/clap-example-host/PKGBUILD index 937f749a..73bdda66 100644 --- a/packages/clap-example-host/PKGBUILD +++ b/packages/clap-example-host/PKGBUILD @@ -11,7 +11,7 @@ arch=(aarch64 x86_64) url='https://github.com/free-audio/clap-host' license=(MIT) depends=(gcc-libs qt6-base) -makedepends=(catch2-v2 cmake rtaudio rtmidi) +makedepends=(catch2-v2 cmake git rtaudio rtmidi) provides=(clap-host) groups=(pro-audio) _tag=a86f5474f325bb78c574cae82f51043806f75967 From b01eca0dca395418338d7cfebb20c94c213c5a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BClsmann?= Date: Wed, 3 Jul 2024 18:35:13 +0200 Subject: [PATCH 3/3] use git source --- packages/clap-example-host/PKGBUILD | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/packages/clap-example-host/PKGBUILD b/packages/clap-example-host/PKGBUILD index 73bdda66..4a4aed55 100644 --- a/packages/clap-example-host/PKGBUILD +++ b/packages/clap-example-host/PKGBUILD @@ -5,7 +5,7 @@ _name=clap-host # clap-host as pkgname is not ideal due to other hosts using that as a virtual provides pkgname=clap-example-host pkgver=1.0.3 -pkgrel=3 +pkgrel=4 pkgdesc='CLAP example audio plugin host' arch=(aarch64 x86_64) url='https://github.com/free-audio/clap-host' @@ -14,20 +14,13 @@ depends=(gcc-libs qt6-base) makedepends=(catch2-v2 cmake git rtaudio rtmidi) provides=(clap-host) groups=(pro-audio) -_tag=a86f5474f325bb78c574cae82f51043806f75967 -source=("$_name::git+https://github.com/free-audio/$_name#tag=$_tag" - 'clap::git+https://github.com/free-audio/clap' - 'clap-helpers::git+https://github.com/free-audio/clap-helpers') -sha256sums=('SKIP' +source=("git+https://github.com/free-audio/$_name#tag=$pkgver" + 'git+https://github.com/free-audio/clap' + 'git+https://github.com/free-audio/clap-helpers') +sha256sums=('84b1e4265abc1481bf29075125ffbda179b065635a39fa4971f267aba23590a8' 'SKIP' 'SKIP') -pkgver() { - cd $_name - #git describe --tags - echo 1.0.3 -} - prepare() { cd $_name for _mod in clap clap-helpers; do