# Template file for 'cli-visualizer'
pkgname=cli-visualizer
version=1.8
revision=3
build_style=cmake
configure_args="-DCXX_COLOR_SUPPORTED=NO"
makedepends="fftw-devel ncurses-devel $(vopt_if pulseaudio 'pulseaudio-devel')"
short_desc="CLI based audio visualizer"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/dpayne/cli-visualizer"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=927e4c18403c7a40397e8698ffefd1b37250be20fa0ec55fda9a82cf9cc8ba51
build_options="pulseaudio"
build_options_default="pulseaudio"

post_install() {
	vlicense LICENSE

	# package 'vis' has rights to /usr/bin/vis
	mv ${DESTDIR}/usr/bin/vis ${DESTDIR}/usr/bin/cli-visualizer
	vdoc "${FILESDIR}/README.voidlinux"
}
