2022-01-15 03:57:51 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/cantino/mcfly
|
|
|
|
TERMUX_PKG_DESCRIPTION="Replaces your default ctrl-r shell history search with an intelligent search engine"
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-04-18 13:09:54 +02:00
|
|
|
TERMUX_PKG_VERSION=0.6.0
|
2022-01-15 03:57:51 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/cantino/mcfly/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
2022-04-18 13:09:54 +02:00
|
|
|
TERMUX_PKG_SHA256=dd846f7ff7109921febc8aecdfd769a1258488a0d72b4a0cfcfa3eaac118b1bc
|
2022-01-15 03:57:51 +01:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2022-04-18 13:09:54 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2022-01-15 03:57:51 +01:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
if [ "$TERMUX_ARCH" == "x86_64" ]; then
|
|
|
|
local libdir=target/x86_64-linux-android/release/deps
|
|
|
|
mkdir -p $libdir
|
|
|
|
pushd $libdir
|
|
|
|
local libgcc="$($CC -print-libgcc-file-name)"
|
|
|
|
echo "INPUT($libgcc -l:libunwind.a)" > libgcc.so
|
|
|
|
popd
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make() {
|
|
|
|
termux_setup_rust
|
|
|
|
cargo build --jobs $TERMUX_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
install -Dm700 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/mcfly
|
2022-03-13 07:02:38 +01:00
|
|
|
install -Dm600 -t $TERMUX_PREFIX/share/mcfly mcfly.{fi,z}sh
|
2022-01-15 03:57:51 +01:00
|
|
|
}
|