# Template file for 'routemidi'
pkgname=routemidi
version=0.9.10
revision=1
build_wrksrc="Builds/LinuxMakefile"
hostmakedepends="pkg-config"
makedepends="alsa-lib-devel"
short_desc="Command-line tool route MIDI messages"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/gbevin/RouteMIDI"
changelog="https://github.com/gbevin/RouteMIDI/releases"
distfiles="https://github.com/gbevin/RouteMIDI/archive/refs/tags/${version}.tar.gz"
checksum=c01beb801acff833b48da308fe48d960dfde83f852df39b445e565a87407433a

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/RouteMIDITests
}

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