#!/bin/sh

NAME="cmt"
DESC="LADSPA plugins for use with software synthesis and recording packages on Linux"

MAKEDEPS="make ladspa "

PKG_VER=1.18
SOURCE="https://www.ladspa.org/download/cmt_${PKG_VER}.tgz"

prepare () {
    sed -e "s|-O2|${CFLAGS} ${LDFLAGS}|" -i src/Makefile
}

build () {
    cd src
    make
}

package () {
    cd ..
    install -Dm 755 plugins/cmt.so "${PKG_DEST}/usr/lib/ladspa/"
}
