# Template file for 'receivemidi'
pkgname=receivemidi
version=1.3.1
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 monitor and receive MIDI messages"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/gbevin/ReceiveMIDI"
changelog="https://github.com/gbevin/ReceiveMIDI/releases"
distfiles="https://github.com/gbevin/ReceiveMIDI/archive/refs/tags/${version}.tar.gz"
checksum=54697ad1a723eea5e3f19ec3bf153795e765b278953dde8be7f350001637bc0a

post_patch() {
	if [ -z "$XBPS_TARGET_NO_ATOMIC8" ]; then
		vsed -e 's/-latomic//g' -i Makefile
	fi
}

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