mcfly: Disable broken Bash support
See https://github.com/termux/termux-packages/issues/8722.
This commit is contained in:
parent
f31120b323
commit
c96e9fe509
@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Replaces your default ctrl-r shell history search with a
|
|||||||
TERMUX_PKG_LICENSE="MIT"
|
TERMUX_PKG_LICENSE="MIT"
|
||||||
TERMUX_PKG_MAINTAINER="@termux"
|
TERMUX_PKG_MAINTAINER="@termux"
|
||||||
TERMUX_PKG_VERSION=0.5.12
|
TERMUX_PKG_VERSION=0.5.12
|
||||||
|
TERMUX_PKG_REVISION=1
|
||||||
TERMUX_PKG_SRCURL=https://github.com/cantino/mcfly/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
TERMUX_PKG_SRCURL=https://github.com/cantino/mcfly/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
||||||
TERMUX_PKG_SHA256=41bbcbde13c3a27696cb4ac0b9e752a925661747acc4075450e10d4e17b17bde
|
TERMUX_PKG_SHA256=41bbcbde13c3a27696cb4ac0b9e752a925661747acc4075450e10d4e17b17bde
|
||||||
TERMUX_PKG_BUILD_IN_SRC=true
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||||||
@ -25,5 +26,5 @@ termux_step_make() {
|
|||||||
|
|
||||||
termux_step_make_install() {
|
termux_step_make_install() {
|
||||||
install -Dm700 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/mcfly
|
install -Dm700 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/mcfly
|
||||||
install -Dm600 -t $TERMUX_PREFIX/share/mcfly mcfly.{ba,fi,z}sh
|
install -Dm600 -t $TERMUX_PREFIX/share/mcfly mcfly.{fi,z}sh
|
||||||
}
|
}
|
||||||
|
23
packages/mcfly/src-settings.rs.patch
Normal file
23
packages/mcfly/src-settings.rs.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
--- a/src/settings.rs
|
||||||
|
+++ b/src/settings.rs
|
||||||
|
@@ -238,8 +238,8 @@
|
||||||
|
.subcommand(SubCommand::with_name("init")
|
||||||
|
.about("Prints the shell code used to execute mcfly")
|
||||||
|
.arg(Arg::with_name("shell")
|
||||||
|
- .help("Shell to init — one of bash, zsh, or fish")
|
||||||
|
- .possible_values(&["bash", "zsh", "fish"])
|
||||||
|
+ .help("Shell to init — one of zsh or fish")
|
||||||
|
+ .possible_values(&["zsh", "fish"])
|
||||||
|
.required(true))
|
||||||
|
)
|
||||||
|
.get_matches();
|
||||||
|
@@ -459,9 +459,6 @@
|
||||||
|
("init", Some(init_matches)) => {
|
||||||
|
settings.mode = Mode::Init;
|
||||||
|
match init_matches.value_of("shell").unwrap() {
|
||||||
|
- "bash" => {
|
||||||
|
- settings.init_mode = InitMode::Bash;
|
||||||
|
- }
|
||||||
|
"zsh" => {
|
||||||
|
settings.init_mode = InitMode::Zsh;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user