# Description: Collection of LADSPA/LV2/VST/JACK audio plugins for high-quality processing
# URL: https://github.com/zamaudio/zam-plugins
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: git ladspa libglvnd liblo libsamplerate lv2 zita-convolver

name=zam-plugins
version=4.1
release=1
_dpfcommit=88180608a206b529fcb660d406ddf6f934002806
_puglcommit=844528e197c51603f6cef3238b4a48d23bf60eb7
source=(https://github.com/zamaudio/zam-plugins/archive/$version/$name-$version.tar.gz
  https://github.com/DISTRHO/DPF/archive/$_dpfcommit/dpf-$_dpfcommit.tar.gz
  https://github.com/DISTRHO/pugl/archive/$_puglcommit/pugl-$_puglcommit.tar.gz)

build() {
  cd $name-$version

  cp -r $SRC/DPF-$_dpfcommit/* dpf/
  cp -r $SRC/pugl-$_puglcommit/* dpf/dgl/src/pugl-upstream
  make HAVE_JACK=false
  make DESTDIR=$PKG PREFIX=/usr/ install
}
