void-packages/srcpkgs/rtmidi/template

36 lines
932 B
Bash

# Template file for 'rtmidi'
pkgname=rtmidi
version=3.0.0
revision=2
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/v${version}.tar.gz"
checksum=55cd0fba60321aadcd847481d207bf2b70e783b5bfa1a01037bf916554a7d5c4
pre_configure() {
sed -i 's/\($cppflag\)/\1 $CFLAGS/' configure.ac
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"
}
}