void-packages/srcpkgs/rtaudio/template

31 lines
909 B
Bash

# Template file for 'rtaudio'
pkgname=rtaudio
version=5.2.0
revision=2
build_style=meson
configure_args="-Dalsa=enabled -Djack=enabled -Dpulse=enabled"
hostmakedepends="pkg-config"
makedepends="alsa-lib-devel pulseaudio-devel jack-devel"
short_desc="C++ classes for common Linux, MacOS and Windows realtime audio APIs"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://www.music.mcgill.ca/~gary/rtaudio/"
distfiles="http://www.music.mcgill.ca/~gary/rtaudio/release/rtaudio-${version}.tar.gz"
checksum=d6089c214e5dbff136ab21f3f5efc284e93475ebd198c54d4b9b6c44419ef4e6
post_install() {
sed -n '/Copyright/,/IN THE SOFTWARE/p' RtAudio.h > LICENSE
vlicense LICENSE
}
rtaudio-devel_package() {
depends="rtaudio-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}