# Template file for 'sendmidi'
pkgname=sendmidi
version=1.4.3
revision=1
build_wrksrc="Builds/LinuxMakefile"
build_style=gnu-makefile
make_build_args="CONFIG=Release"
hostmakedepends="pkg-config"
makedepends="alsa-lib-devel"
short_desc="Command-line tool to send out MIDI messages"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/gbevin/SendMIDI"
changelog="https://github.com/gbevin/SendMIDI/releases"
distfiles="https://github.com/gbevin/SendMIDI/archive/refs/tags/${version}.tar.gz"
checksum=40a74ffd82d5c956242d8caeeff2b13d663e0e32911c586a5e2b67e0e34c80c6

do_build() {
	export JUCE_LDFLAGS="$LDFLAGS"
	make ${makejobs} CONFIG=Release V=1
}

do_check() {
	cd "${wrksrc}/Tests/Builds/LinuxMakefile"
	export JUCE_LDFLAGS="$LDFLAGS"
	make ${makejobs} CONFIG=Release V=1
	./build/SendMIDITests
}

do_install() {
	vbin build/sendmidi
	vdoc "${wrksrc}/README.md"
}
