Browse Source

mpd: use $PREFIX/var/run instead of $TMPDIR

See https://github.com/termux/termux-packages/issues/4206
emacs-27
Henrik Grimler 6 years ago
parent
commit
95b0264661
  1. 2
      packages/mpd/build.sh
  2. 4
      packages/mpd/doc-mpdconf.example.patch
  3. 7
      packages/mpd/src-fs-io-FileOutputStream.hxx.patch

2
packages/mpd/build.sh

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.musicpd.org
TERMUX_PKG_DESCRIPTION="Music player daemon"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=0.21.13
TERMUX_PKG_REVISION=4
TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL=https://github.com/MusicPlayerDaemon/MPD/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=0c71ff34aa4def30cd931977cbfe3deb6ec815a726b8c5343f1b8e5707136ebf
TERMUX_PKG_DEPENDS="libc++, libcurl, libid3tag, libopus, libpulseaudio, libmpdclient, openal-soft, libvorbis, libsqlite, ffmpeg, libmp3lame, libbz2, libogg, libnfs, zlib"

4
packages/mpd/doc-mpdconf.example.patch

@ -69,7 +69,7 @@ diff -u -r ../MPD-0.21.3/doc/mpdconf.example ./doc/mpdconf.example
#
# And for Unix Socket
-#bind_to_address "~/.mpd/socket"
+bind_to_address "@TERMUX_PREFIX@/tmp/mpd.socket"
+bind_to_address "@TERMUX_PREFIX@/var/run/mpd.socket"
#
# This setting is the TCP port that is desired for the daemon to get assigned
-# to.
@ -191,7 +191,7 @@ diff -u -r ../MPD-0.21.3/doc/mpdconf.example ./doc/mpdconf.example
+audio_output {
+ type "fifo"
+ name "ncmpcpp visualizer"
+ path "~/../usr/tmp/mpd.fifo"
+ path "@TERMUX_PREFIX@/var/run/mpd.fifo"
+ format "44100:16:2"
+ enabled "no"
+}

7
packages/mpd/src-fs-io-FileOutputStream.hxx.patch

@ -1,7 +1,6 @@
diff -u -r ../MPD-0.21.3/src/fs/io/FileOutputStream.hxx ./src/fs/io/FileOutputStream.hxx
--- ../MPD-0.21.3/src/fs/io/FileOutputStream.hxx 2018-11-16 12:27:58.000000000 +0000
+++ ./src/fs/io/FileOutputStream.hxx 2018-12-31 01:08:58.577798371 +0000
@@ -46,7 +46,7 @@
--- ../FileOutputStream.hxx.orig 2019-08-24 20:56:41.969642005 +0200
+++ ./src/fs/io/FileOutputStream.hxx 2019-08-12 21:47:53.854420002 +0200
@@ -45,7 +45,7 @@
#include <windows.h>
#endif

Loading…
Cancel
Save