Skip to content

Commit

Permalink
+vamp-plugins.org (#5205)
Browse files Browse the repository at this point in the history
* new file:   projects/vamp-plugins.org/package.yml

* linux => so | darwin => dylib

* download original archive

* grep command

* clean

* fix archive url
  • Loading branch information
and-ri authored Feb 19, 2024
1 parent f2ade76 commit 4a8e84d
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions projects/vamp-plugins.org/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
distributable: ~

versions:
url: https://vamp-plugins.org/develop.html
match: /vamp-plugin-sdk-\d+\.\d+\.\d+\.tar\.gz/
strip:
- /^vamp-plugin-sdk-/
- /\.tar\.gz$/

dependencies:
xiph.org/flac: ^1.4
xiph.org/ogg: ^1.3
github.com/libsndfile/libsndfile: ^1.2

build:
dependencies:
gnu.org/automake: '*'
curl.se: '*'
script:
# get archive url
# ex: https://code.soundsoftware.ac.uk/attachments/download/2588/vamp-plugin-sdk-2.9.0.tar.gz
# we need to find url from the page because it's not a fixed url
- DIST_URL=$(curl -s https://vamp-plugins.org/develop.html | grep -o 'https://code.soundsoftware.ac.uk/attachments/download/[0-9]*/vamp-plugin-sdk-{{version}}.tar.gz')
- curl -L $DIST_URL | tar -xz --strip-components 1
- ./configure $ARGS
- make --jobs {{hw.concurrency}}
- make --jobs {{hw.concurrency}} install
env:
ARGS:
- --disable-debug
- --disable-dependency-tracking
- --prefix={{prefix}}
- --libdir={{prefix}}/lib

provides:
- bin/vamp-simple-host
- bin/vamp-rdf-template-generator

test:
script:
- vamp-simple-host -v | grep {{version.marketing}}
- cp {{prefix}}/lib/vamp/vamp-example-plugins.so $OUT
- vamp-simple-host -l | grep 'Amplitude Follower'
env:
VAMP_PATH: $PWD
darwin:
OUT: vamp-example-plugins.dylib
linux:
OUT: vamp-example-plugins.so

0 comments on commit 4a8e84d

Please sign in to comment.