void-packages/srcpkgs/cli-visualizer/template

29 lines
927 B
Bash
Raw Normal View History

# Template file for 'cli-visualizer'
pkgname=cli-visualizer
2019-01-20 22:20:21 +01:00
version=1.8
revision=1
2019-01-20 22:20:21 +01:00
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"
2019-01-20 22:20:21 +01:00
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
2019-01-20 22:20:21 +01:00
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
2019-01-20 22:20:21 +01:00
# package 'vis' has rights to /usr/bin/vis
mv ${DESTDIR}/usr/bin/vis ${DESTDIR}/usr/bin/cli-visualizer
}