void-packages/srcpkgs/cli-visualizer/template

29 lines
927 B
Bash

# Template file for 'cli-visualizer'
pkgname=cli-visualizer
version=1.8
revision=1
build_style=cmake
makedepends="fftw-devel ncurses-devel $(vopt_if pulseaudio 'pulseaudio-devel')"
short_desc="CLI based audio visualizer"
maintainer="Jasper Chan <jasperchan515@gmail.com>"
license="MIT"
homepage="https://github.com/dpayne/cli-visualizer"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=927e4c18403c7a40397e8698ffefd1b37250be20fa0ec55fda9a82cf9cc8ba51
build_options="pulseaudio"
# Some targets don't have libpulse-simple, can't compile with pulseaudio support
case "$XBPS_TARGET_MACHINE" in
armv*) configure_args+=" -DVIS_COMPILER_ARCH=armv6";;
aarch64*) configure_args+=" -DVIS_COMPILER_ARCH=armv8-a";;
x86_64-musl) ;;
*) build_options_default+=" pulseaudio";;
esac
post_install() {
vlicense LICENSE
# package 'vis' has rights to /usr/bin/vis
mv ${DESTDIR}/usr/bin/vis ${DESTDIR}/usr/bin/cli-visualizer
}