Browse Source

username fix for 64 bit archs...

android-5
its-pointless 7 years ago
committed by Fredrik Fornwall
parent
commit
bee471f197
  1. 2
      packages/cmus/build.sh
  2. 11
      packages/cmus/misc.c.patch

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

11
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");
Loading…
Cancel
Save