kakoune
This commit is contained in:
parent
e8583b4e1c
commit
c14ece2cca
|
@ -0,0 +1,8 @@
|
||||||
|
TERMUX_PKG_HOMEPAGE=https://github.com/mawww/kakoune
|
||||||
|
TERMUX_PKG_DESCRIPTION="Code editor heavily inspired by Vim"
|
||||||
|
TERMUX_PKG_VERSION=2018.04.13
|
||||||
|
TERMUX_PKG_SRCURL=https://github.com/mawww/kakoune/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
||||||
|
TERMUX_PKG_SHA256=dfbaf87479ae30fd87426ae1b5f6cbe4382d6fe17b64a0c58d9475bf038e50dc
|
||||||
|
TERMUX_PKG_DEPENDS="ncurses"
|
||||||
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||||
|
TERMUX_PKG_EXTRA_MAKE_ARGS=" -C src debug=no"
|
|
@ -0,0 +1,15 @@
|
||||||
|
diff --git a/src/shell_manager.cc b/src/shell_manager.cc
|
||||||
|
index b92edb4c..df025943 100644
|
||||||
|
--- a/src/shell_manager.cc
|
||||||
|
+++ b/src/shell_manager.cc
|
||||||
|
@@ -30,9 +30,7 @@ ShellManager::ShellManager(ConstArrayView<EnvVarDesc> builtin_env_vars)
|
||||||
|
{
|
||||||
|
// Get a guaranteed to be POSIX shell binary
|
||||||
|
{
|
||||||
|
- auto size = confstr(_CS_PATH, nullptr, 0);
|
||||||
|
- String path; path.resize(size-1, 0);
|
||||||
|
- confstr(_CS_PATH, path.data(), size);
|
||||||
|
+ String path = "@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets:.";
|
||||||
|
for (auto dir : StringView{path} | split<StringView>(':'))
|
||||||
|
{
|
||||||
|
String candidate = format("{}/sh", dir);
|
Loading…
Reference in New Issue