mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-06 02:26:34 +00:00
dd380cecc4
This commit has been automatically submitted by Github Actions.
45 lines
1.5 KiB
Bash
45 lines
1.5 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://fselect.rocks/
|
|
TERMUX_PKG_DESCRIPTION="Find files with SQL-like queries"
|
|
TERMUX_PKG_LICENSE="Apache-2.0, MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="0.8.8"
|
|
TERMUX_PKG_SRCURL=https://github.com/jhspetersson/fselect/archive/$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=0f586c3870a66d4a3ab7b92409dcf0f68a23bd8031ec0cc3f1622efebe190c9e
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_DEPENDS="openssl"
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_cmake
|
|
termux_setup_rust
|
|
|
|
# Dummy CMake toolchain file to workaround build error:
|
|
# error: failed to run custom build command for `libz-ng-sys v1.1.15`
|
|
# ...
|
|
# CMake Error at /home/builder/.termux-build/_cache/cmake-3.28.3/share/cmake-3.28/Modules/Platform/Android-Determine.cmake:217 (message):
|
|
# Android: Neither the NDK or a standalone toolchain was found.
|
|
export TARGET_CMAKE_TOOLCHAIN_FILE="${TERMUX_PKG_BUILDDIR}/android.toolchain.cmake"
|
|
touch "${TERMUX_PKG_BUILDDIR}/android.toolchain.cmake"
|
|
|
|
: "${CARGO_HOME:=$HOME/.cargo}"
|
|
export CARGO_HOME
|
|
|
|
rm -rf $CARGO_HOME/registry/src/*/libmimalloc-sys-*
|
|
cargo fetch --target "${CARGO_TARGET_NAME}"
|
|
|
|
p="libmimalloc-sys-tls.diff"
|
|
for d in $CARGO_HOME/registry/src/*/libmimalloc-sys-*; do
|
|
patch --silent -p1 -d ${d} < "${TERMUX_PKG_BUILDER_DIR}/${p}"
|
|
done
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
install -Dm700 \
|
|
"$TERMUX_PKG_SRCDIR/target/$CARGO_TARGET_NAME"/release/fselect \
|
|
"$TERMUX_PREFIX"/bin/fselect
|
|
}
|
|
|
|
termux_step_post_massage() {
|
|
rm -rf $CARGO_HOME/registry/src/*/libmimalloc-sys-*
|
|
}
|