From 5af6067f1d396447d5b847fa9aaf373bed75845f Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 8 Oct 2018 03:34:29 +0200 Subject: [PATCH] bat: Build with patched version of termios --- disabled-packages/bat/Cargo.toml.patch | 20 ++++++++++++++++++++ disabled-packages/bat/build.sh | 11 +++++++++++ 2 files changed, 31 insertions(+) create mode 100644 disabled-packages/bat/Cargo.toml.patch create mode 100644 disabled-packages/bat/build.sh diff --git a/disabled-packages/bat/Cargo.toml.patch b/disabled-packages/bat/Cargo.toml.patch new file mode 100644 index 000000000..787322f49 --- /dev/null +++ b/disabled-packages/bat/Cargo.toml.patch @@ -0,0 +1,20 @@ +diff -u -r ../bat-0.7.1/Cargo.toml ./Cargo.toml +--- ../bat-0.7.1/Cargo.toml 2018-09-23 08:30:19.000000000 +0000 ++++ ./Cargo.toml 2018-10-08 01:23:55.289414819 +0000 +@@ -20,6 +20,7 @@ + console = "0.6" + directories = "1.0" + lazy_static = "1.0" ++termios = "0.3" + + [dependencies.git2] + version = "0.7" +@@ -41,5 +42,8 @@ + default-features = false + features = [] + ++[patch.crates-io] ++termios = { git = "https://github.com/fornwall/termios-rs", branch = "support-android" } ++ + [dev-dependencies] + tempdir = "0.3" diff --git a/disabled-packages/bat/build.sh b/disabled-packages/bat/build.sh new file mode 100644 index 000000000..b584f6e0b --- /dev/null +++ b/disabled-packages/bat/build.sh @@ -0,0 +1,11 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/sharkdp/bat +TERMUX_PKG_DESCRIPTION="A cat(1) clone with wings" +TERMUX_PKG_VERSION=0.7.1 +TERMUX_PKG_SHA256=5863895e6ac95f5349da95ff74e196c4b365af3fc3f4a1376cab797df493b7a4 +TERMUX_PKG_SRCURL=https://github.com/sharkdp/bat/archive/v$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_BUILD_IN_SRC=yes + +termux_step_post_make_install() { + mkdir -p $TERMUX_PREFIX/share/man/man1 + cp $TERMUX_PKG_SRCDIR/doc/bat.1 $TERMUX_PREFIX/share/man/man1/ +}