diff --git a/packages/ranger/build.sh b/packages/ranger/build.sh index 49798ed5f..0cbe459c1 100644 --- a/packages/ranger/build.sh +++ b/packages/ranger/build.sh @@ -1,10 +1,9 @@ TERMUX_PKG_HOMEPAGE=https://ranger.github.io/ TERMUX_PKG_DESCRIPTION="File manager with VI key bindings" TERMUX_PKG_LICENSE="GPL-2.0" -TERMUX_PKG_VERSION=1.9.2 -TERMUX_PKG_REVISION=2 +TERMUX_PKG_VERSION=1.9.3 TERMUX_PKG_SRCURL=https://github.com/ranger/ranger/archive/v${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=49a2d8dc5fa7b1c0cac0fa72d4ad704fc7107dee36cb9feb325a42754774d363 +TERMUX_PKG_SHA256=ce088a04c91c25263a9675dc5c43514b7ec1b38c8ea43d9a9d00923ff6cdd251 TERMUX_PKG_DEPENDS="python, file" TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_PLATFORM_INDEPENDENT=true diff --git a/packages/ranger/ranger-config-commands.py.patch b/packages/ranger/ranger-config-commands.py.patch new file mode 100644 index 000000000..d867af210 --- /dev/null +++ b/packages/ranger/ranger-config-commands.py.patch @@ -0,0 +1,12 @@ +diff -u -r ../ranger-1.9.3/ranger/config/commands.py ./ranger/config/commands.py +--- ../ranger-1.9.3/ranger/config/commands.py 2019-12-31 15:07:45.000000000 +0000 ++++ ./ranger/config/commands.py 2020-01-02 20:34:53.030269000 +0000 +@@ -1184,7 +1184,7 @@ + script_was_edited = (script_content != cmdfile.read()) + + # Do the renaming +- self.fm.run(['/bin/sh', cmdfile.name], flags='w') ++ self.fm.run(['@TERMUX_PREFIX@/bin/sh', cmdfile.name], flags='w') + + # Retag the files, but only if the script wasn't changed during review, + # because only then we know which are the source and destination files. diff --git a/packages/ranger/ranger.patch b/packages/ranger/ranger.patch index 92967c629..0145ae154 100644 --- a/packages/ranger/ranger.patch +++ b/packages/ranger/ranger.patch @@ -1,15 +1,3 @@ -diff -u -r ../ranger-1.7.0/ranger/config/commands.py ./ranger/config/commands.py ---- ../ranger-1.7.0/ranger/config/commands.py 2015-04-13 18:25:24.000000000 -0400 -+++ ./ranger/config/commands.py 2015-04-25 04:11:34.899100939 -0400 -@@ -868,7 +868,7 @@ - script_was_edited = (script_content != cmdfile.read()) - - # Do the renaming -- self.fm.run(['/bin/sh', cmdfile.name], flags='w') -+ self.fm.run(['@TERMUX_PREFIX@/bin/sh', cmdfile.name], flags='w') - cmdfile.close() - - # Retag the files, but only if the script wasn't changed during review, diff -u -r ../ranger-1.7.0/ranger/ext/rifle.py ./ranger/ext/rifle.py --- ../ranger-1.7.0/ranger/ext/rifle.py 2015-04-13 18:25:24.000000000 -0400 +++ ./ranger/ext/rifle.py 2015-04-25 04:10:19.259100887 -0400