Package Details: cli-visualizer 1.8-10

Git Clone URL: https://aur.archlinux.org/cli-visualizer.git (read-only, click to copy)
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: kleintux
Last Packager: kleintux
Votes: 34
Popularity: 0.000001
First Submitted: 2015-12-27 06:52 (UTC)
Last Updated: 2022-07-02 08:10 (UTC)

Dependencies (5)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

dpayne commented on 2016-01-08 08:36 (UTC)

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 (UTC)

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() {