Package Details: cli-visualizer 1.6-6

Git Clone URL: https://aur.archlinux.org/cli-visualizer.git (read-only)
Package Base: cli-visualizer
Description: A cli visualizer for mpd
Upstream URL: https://github.com/dpayne/cli-visualizer/
Licenses: MIT
Conflicts: vis
Submitter: dpayne
Maintainer: dpayne
Last Packager: dpayne
Votes: 16
Popularity: 0.893180
First Submitted: 2015-12-27 06:52
Last Updated: 2017-05-05 16:37

Latest Comments

dpayne commented on 2017-05-05 21:51

The build should be fixed now.

oschoudhury commented on 2017-05-05 13:19

The PKGBUILD and .SRCINFO file are referring to two different versions, 1.6 vs 1.5, which is the probable cause of why the build is failing.

Mr.Elendig commented on 2016-12-08 11:47

Please remove the silly || exit, and don't forget to makepkg --printsrcinfo > .SRCINFO this time. Also you don't have to depend on pkg-config, base-devel should be asumed to be installed.

bradst commented on 2016-06-26 01:40

This package conflicts with community/vis on /usr/bin/vis . Could you please add this to the conflicts array in the PKGBUILD?

dpayne commented on 2016-02-01 05:11

The installation should be working fine now. I've added the rainbow color scheme as the default, so there's now no need for any files to be copied over. Examples are still being copied to /usr/share/doc/cli-visualizer.

StephenBrown2 commented on 2016-01-08 18:58

An update. I tried on my work machine and ran into troubles again, this time trying to create the /usr/share folders.

I ended up simply removing all those steps, which let it install fine, and then copied the config manually from the src. Working beautifully now.

dpayne commented on 2016-01-08 08:36

Thanks for the patch! For now I like that the rainbow colorscheme works out of the box. Eventually I'll add the rainbow colorscheme as a default inside the program itself and then I can get rid of copying it here.

StephenBrown2 commented on 2016-01-08 05:58

This package won't build on my computer, as the package() function is trying to do install things.

Here is a patch which follows more closely the Arch packaging standards: https://wiki.archlinux.org/index.php/Arch_packaging_standards and instead copies the examples to a default config location, and informs the user that we have messed with their home directory. I would personally rather leave the homedir config as an exercise for the user, but it is also nice to have it working out of the box.

================================

diff --git a/PKGBUILD b/PKGBUILD
index 90b456a..d76c98f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,9 +32,8 @@ package() {
install -Dm755 bin/safe_fifo "$pkgdir/usr/bin/safe_fifo"

#create config directory
- mkdir -p ~/.config/vis/colors
+ mkdir -p "$pkgbuild/usr/share/doc/cli-visualizer"

#copy over example files
- cp examples/config ~/.config/vis/
- cp examples/rainbow ~/.config/vis/colors/rainbow
+ cp -r examples "$pkgbuild/usr/share/doc/cli-visualizer/"
}
diff --git a/cli-visualizer.install b/cli-visualizer.install
index bb85a89..59e5c37 100644
--- a/cli-visualizer.install
+++ b/cli-visualizer.install
@@ -1,7 +1,13 @@
post_install() {
+ mkdir -p ~/.config/vis/colors
+ cp /usr/share/doc/cli-visualizer/examples/config ~/.config/vis/
+ cp /usr/share/doc/cli-visualizer/examples/rainbow ~/.config/vis/colors/rainbow
+
echo ""
- echo ":: Example configuration files can be found in"
+ echo ":: A default configuration has been created in"
echo ":: ~/.config/vis"
+ echo ":: More example configuration files can be found in"
+ echo ":: /usr/share/doc/cli-visualizer/examples"
}

post_upgrade() {