void-packages/srcpkgs/rtmidi/template

35 lines
881 B
Bash

# Template file for 'rtmidi'
pkgname=rtmidi
version=4.0.0
revision=1
build_style=gnu-configure
configure_args="--with-alsa --with-jack"
hostmakedepends="automake libtool"
makedepends="alsa-lib-devel jack-devel"
short_desc="C++ classes for realtime MIDI input/output"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="RtMidi, MIT"
homepage="http://www.music.mcgill.ca/~gary/rtmidi/"
distfiles="https://github.com/thestk/rtmidi/archive/${version}.tar.gz"
checksum=d32de9ceebf6d969537e9a9720925a1ac7f6a8bc4ac4ce7c58c01434f4e54f44
pre_configure() {
sed -n '/Copyright (c)/,$ p' < README.md > LICENSE
autoreconf -fi
}
post_install() {
vlicense LICENSE
}
rtmidi-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}