From 0e2fbd557c27baa8cbc4e311f7294e7526374a45 Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Mon, 17 Jun 2024 11:16:59 +0200 Subject: [PATCH] feat: add new package 'pluginval' Signed-off-by: Christopher Arndt --- nvchecker/archlinux-proaudio.toml | 7 +++++ nvchecker/old_ver.json | 1 + packages/pluginval/PKGBUILD | 52 +++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 packages/pluginval/PKGBUILD diff --git a/nvchecker/archlinux-proaudio.toml b/nvchecker/archlinux-proaudio.toml index e7791563..eb309fd7 100644 --- a/nvchecker/archlinux-proaudio.toml +++ b/nvchecker/archlinux-proaudio.toml @@ -278,6 +278,13 @@ github = "essej/paulxstretch" use_max_tag = true prefix = "v" +[pluginval] +source = "github" +github = "Tracktion/pluginval" +use_max_tag = true +include_regex = '^v\d+(\.\d+)+$' +prefix = "v" + [python-miditk-smf] source = "pypi" pypi = "miditk-smf" diff --git a/nvchecker/old_ver.json b/nvchecker/old_ver.json index 49732844..ecfb82f5 100644 --- a/nvchecker/old_ver.json +++ b/nvchecker/old_ver.json @@ -43,6 +43,7 @@ "octasine": "0.9.0", "ola": "0.10.9", "paulxstretch": "1.6.0", + "pluginval": "1.0.3", "python-miditk-smf": "0.3.1", "python-mido": "1.3.2", "python-pyjacklib": "0.1.1", diff --git a/packages/pluginval/PKGBUILD b/packages/pluginval/PKGBUILD new file mode 100644 index 00000000..bdeb01d4 --- /dev/null +++ b/packages/pluginval/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: OSAMC +# Contributor: Christopher Arndt + +pkgname=pluginval +pkgver=1.0.3 +pkgrel=1 +pkgdesc='Cross platform DAW plugin testing and validation tool' +arch=(x86_64 aarch64) +url='https://github.com/Tracktion/pluginval/' +license=(GPL-3.0-only) +depends=(freetype2 glibc gcc-libs) +makedepends=(alsa-lib cmake ladspa webkit2gtk) +groups=(pro-audio) +# Commit, which has tag for last 7.0.x release +_juce_commit='4f43011b96eb0636104cb3e433894cda98243626' +source=( + "$pkgname-$pkgver.tar.gz::https://github.com/Tracktion/pluginval/archive/refs/tags/v$pkgver.tar.gz" + "JUCE-$_juce_commit.tar.gz::https://github.com/juce-framework/JUCE/archive/$_juce_commit.tar.gz" + 'juce-issue-1314.patch' +) + +sha256sums=('fdc7a7a31823cdf69aef15fd90d6723819f19082136f3edf5683718d33a80d28' + 'efaeeed2ca988d3ade7b21dd01dca5c79fd9a2fb5884ea6140b31a7a87e61053' + 'a1e524c5b5ed13f988712043632360e6549c397390f09c29804e08a5605434fc') + + +prepare() { + cd $pkgname-$pkgver + test -d modules/juce && rmdir modules/juce + ln -s "$srcdir"/JUCE-$_juce_commit modules/juce + cd modules/juce + patch -p1 -N -r - -i "$srcdir"/juce-issue-1314.patch +} + +build() { + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -Wno-dev \ + -B $pkgname-$pkgver-build \ + -S $pkgname-$pkgver + cmake --build $pkgname-$pkgver-build +} + +package() { + depends+=(libfreetype.so) + install -vDm 755 $pkgname-$pkgver-build/${pkgname}_artefacts/Release/$pkgname \ + -t "$pkgdir"/usr/bin + # Docs + cd $pkgname-$pkgver + install -vDm 644 README.md docs/*.md -t "$pkgdir"/usr/share/doc/$pkgname + install -vDm 644 docs/images/*.png -t "$pkgdir"/usr/share/doc/$pkgname/images +}