From bee471f19703b159786974c35bb6a684fe0753c2 Mon Sep 17 00:00:00 2001 From: its-pointless Date: Mon, 15 Jan 2018 11:10:19 +1100 Subject: [PATCH] username fix for 64 bit archs... --- packages/cmus/build.sh | 2 +- packages/cmus/misc.c.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 packages/cmus/misc.c.patch diff --git a/packages/cmus/build.sh b/packages/cmus/build.sh index d1eb50f6c..2ca079703 100644 --- a/packages/cmus/build.sh +++ b/packages/cmus/build.sh @@ -4,7 +4,7 @@ TERMUX_PKG_VERSION=2.7.1 TERMUX_PKG_DEPENDS="libandroid-support, ncurses, libflac, libmad, libvorbis, opusfile, libcue, libpulseaudio" TERMUX_PKG_SRCURL=https://github.com/cmus/cmus/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=8179a7a843d257ddb585f4c65599844bc0e516fe85e97f6f87a7ceade4eb5165 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_REVISION=2 TERMUX_PKG_BUILD_IN_SRC=yes termux_step_pre_configure() { diff --git a/packages/cmus/misc.c.patch b/packages/cmus/misc.c.patch new file mode 100644 index 000000000..68dfebca3 --- /dev/null +++ b/packages/cmus/misc.c.patch @@ -0,0 +1,11 @@ +--- ../cache/cmus-2.7.1/misc.c 2015-07-13 10:00:56.000000000 +0000 ++++ ./misc.c 2018-01-15 00:32:11.534224662 +0000 +@@ -194,7 +194,7 @@ + if (user_name == NULL) { + user_name = get_non_empty_env("USERNAME"); + if (user_name == NULL) +- die("error: neither USER or USERNAME environment variable set\n"); ++ user_name == "Droid"; + } + + cmus_config_dir = get_non_empty_env("CMUS_HOME");