From aa7a42f6f92c7c0f1ad0d5fb9a1e648a383f9d61 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sun, 1 Sep 2019 14:58:40 +0200 Subject: [PATCH] ncmpcpp: Fix socket path after it has been updated in mpd --- packages/ncmpcpp/build.sh | 2 +- packages/ncmpcpp/settings.cpp.patch | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ncmpcpp/build.sh b/packages/ncmpcpp/build.sh index ac81cd33b..186f301f7 100644 --- a/packages/ncmpcpp/build.sh +++ b/packages/ncmpcpp/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://rybczak.net/ncmpcpp/ TERMUX_PKG_DESCRIPTION="NCurses Music Player Client (Plus Plus)" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_VERSION=0.8.2 -TERMUX_PKG_REVISION=11 +TERMUX_PKG_REVISION=12 TERMUX_PKG_SRCURL=https://rybczak.net/ncmpcpp/stable/ncmpcpp-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SHA256=650ba3e8089624b7ad9e4cc19bc1ac6028edb7523cc111fa1686ea44c0921554 TERMUX_PKG_DEPENDS="fftw, boost, readline, libandroid-support, libc++, libcurl, libmpdclient, ncurses, zlib" diff --git a/packages/ncmpcpp/settings.cpp.patch b/packages/ncmpcpp/settings.cpp.patch index 77ccd6809..79db501c7 100644 --- a/packages/ncmpcpp/settings.cpp.patch +++ b/packages/ncmpcpp/settings.cpp.patch @@ -5,7 +5,7 @@ p.add("ncmpcpp_directory", &ncmpcpp_directory, "~/.ncmpcpp/", adjust_directory); p.add("lyrics_directory", &lyrics_directory, "~/.lyrics/", adjust_directory); - p.add("mpd_host", nullptr, "localhost", [](std::string host) { -+ p.add("mpd_host", nullptr, "@TERMUX_PREFIX@/tmp/mpd.socket", [](std::string host) { ++ p.add("mpd_host", nullptr, "@TERMUX_PREFIX@/var/run/mpd.socket", [](std::string host) { expand_home(host); Mpd.SetHostname(host); }); @@ -17,7 +17,7 @@ p.add("mpd_connection_timeout", &mpd_connection_timeout, "5"); p.add("mpd_crossfade_time", &crossfade_time, "5"); - p.add("visualizer_fifo_path", &visualizer_fifo_path, "/tmp/mpd.fifo", adjust_path); -+ p.add("visualizer_fifo_path", &visualizer_fifo_path, "@TERMUX_PREFIX@/tmp/mpd.fifo", adjust_path); ++ p.add("visualizer_fifo_path", &visualizer_fifo_path, "@TERMUX_PREFIX@/var/run/mpd.fifo", adjust_path); p.add("visualizer_output_name", &visualizer_output_name, "Visualizer feed"); p.add("visualizer_in_stereo", &visualizer_in_stereo, "yes", yes_no); p.add("visualizer_sync_interval", &visualizer_sync_interval, "30",