# Maintainer:
pkgname=mda-lv2
pkgver=1.2.10
pkgrel=2
pkgdesc="Port of the MDA VST plugins to LV2"
url="https://gitlab.com/drobilla/mda-lv2"
arch="all"
license="GPL-3.0-or-later"
makedepends="lv2-dev meson"
checkdepends="lv2lint"
source="https://download.drobilla.net/mda-lv2-$pkgver.tar.xz"
options="!check" # no autoship

build() {
	abuild-meson \
		-Db_lto=true \
		-Dtests="$(want_check && echo enabled || echo disabled)" \
		. output
	meson compile -C output
}

check() {
	meson test --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
be490887be25b2578a4f0a0f7d571aaa1bad37a640094ffde7bdca21a285ddf7d7650f96f735cb0ec01e262bddb945ab9e8923a2d8b94afb5dc6940cf4e2b054  mda-lv2-1.2.10.tar.xz
"
