# Template file for 'portmidi'
pkgname=portmidi
reverts="217_1 217_2 217_3"
version=2.0.6
revision=1
build_style=cmake
configure_args="-DCMAKE_INSTALL_PREFIX=/usr -DBUILD_JAVA_NATIVE_INTERFACE=OFF"
hostmakedepends="unzip"
makedepends="alsa-lib-devel"
short_desc="Real-time input and output of MIDI data"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://github.com/PortMidi/portmidi/"
distfiles="https://github.com/PortMidi/portmidi/archive/refs/tags/v${version}.tar.gz"
checksum=81d22b34051621cd56c8d5ef12908ef2a59764c9cdfba6dae47aabddb71ac914

post_install() {
	vlicense license.txt
}

portmidi-devel_package() {
	depends="portmidi>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/cmake
		vmove usr/lib/pkgconfig
	}
}
