diff --git a/srcpkgs/cli-visualizer/INSTALL.msg b/srcpkgs/cli-visualizer/INSTALL.msg new file mode 100644 index 0000000000..fc6bb8b1b2 --- /dev/null +++ b/srcpkgs/cli-visualizer/INSTALL.msg @@ -0,0 +1,8 @@ +Warning: Running cli-visualizer may cause your terminal colors to be +overwritten until you restart your terminal. + +You can disable this behavior by setting: + + colors.override.terminal=false + +in ~/.config/vis/config diff --git a/srcpkgs/cli-visualizer/patches/0001-Checking-for-ltinfo-is-deprecated.patch b/srcpkgs/cli-visualizer/patches/0001-Checking-for-ltinfo-is-deprecated.patch new file mode 100644 index 0000000000..64fccd157e --- /dev/null +++ b/srcpkgs/cli-visualizer/patches/0001-Checking-for-ltinfo-is-deprecated.patch @@ -0,0 +1,24 @@ +From 02fe362807c3b8743ec6696476bfe51ab590ff39 Mon Sep 17 00:00:00 2001 +From: Jasper Chan +Date: Thu, 6 Sep 2018 21:47:43 -0700 +Subject: [PATCH] Checking for -ltinfo is deprecated + +--- + Makefile | 1 - + 1 file changed, 1 deletion(-) + +diff --git Makefile Makefile +index 8626dd2..5653c67 100644 +--- Makefile ++++ Makefile +@@ -55,7 +55,6 @@ CXX_FLAGS += -dynamic -D_OS_OSX + # Linux + else + CXX_FLAGS += -D_LINUX +-LIBS += -ltinfo + ifndef ENABLE_PULSE + CHECK_PULSE=$(shell ldconfig -p | grep libpulse-simple) + ifeq ($(strip $(CHECK_PULSE)),) +-- +2.18.0 + diff --git a/srcpkgs/cli-visualizer/patches/0002-use-proper-install-and-dont-clash-with-vis.patch b/srcpkgs/cli-visualizer/patches/0002-use-proper-install-and-dont-clash-with-vis.patch new file mode 100644 index 0000000000..ae97a39e6c --- /dev/null +++ b/srcpkgs/cli-visualizer/patches/0002-use-proper-install-and-dont-clash-with-vis.patch @@ -0,0 +1,11 @@ +--- Makefile ++++ Makefile +@@ -234,7 +234,7 @@ uninstall: + @rm -f $(PREFIX)/safe_fifo + + install: +- cp $(BUILD_DIR)/$(TARGET) $(PREFIX) ++ install $(BUILD_DIR)/$(TARGET) -Dm0755 $(PREFIX)/cli-visualizer + # cp bin/safe_fifo $(PREFIX) + + ############################################################################### diff --git a/srcpkgs/cli-visualizer/template b/srcpkgs/cli-visualizer/template new file mode 100644 index 0000000000..2cc72fc2fe --- /dev/null +++ b/srcpkgs/cli-visualizer/template @@ -0,0 +1,31 @@ +# Template file for 'cli-visualizer' +pkgname=cli-visualizer +version=1.7 +revision=1 +build_style=gnu-configure +make_install_args="PREFIX=${DESTDIR}/usr/bin/" +makedepends="fftw-devel ncurses-devel $(vopt_if pulseaudio 'pulseaudio-devel')" +short_desc="CLI based audio visualizer" +maintainer="Jasper Chan " +license="MIT" +homepage="https://github.com/dpayne/cli-visualizer" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=0445fbfad9707668a70ff146f3f24308f28fa0ae67a7010bfdea0dacba75b75b +build_options="pulseaudio" + +# Some targets don't have libpulse-simple, can't compile with pulseaudio support +case "$XBPS_TARGET_MACHINE" in + armv*) make_build_args+=" VIS_COMPILER_ARCH=armv6";; + aarch64*) make_build_args+=" VIS_COMPILER_ARCH=armv8-a";; + x86_64-musl) ;; + *) build_options_default+=" pulseaudio";; +esac + +post_install() { + # Files listed in install.sh + for f in examples/*; do + vsconf ${f} + done + + vlicense LICENSE +}