mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-12 04:41:03 +00:00
See https://www.nushell.sh/blog/2025-10-15-nushell_v0_108_0.html#add-network-feature-to-top-level-crate-16686-toc
29 lines
1.1 KiB
Bash
29 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://www.nushell.sh
|
|
TERMUX_PKG_DESCRIPTION="A new type of shell operating on structured data"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="0.108.0"
|
|
TERMUX_PKG_SRCURL=https://github.com/nushell/nushell/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=5995c211411ad1d5dd7da904b9db238a543958675b9e45f5e84fbdf217499eee
|
|
TERMUX_PKG_DEPENDS="openssl"
|
|
TERMUX_PKG_RECOMMENDS="command-not-found, termux-api"
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--no-default-features --features plugin,trash-support,sqlite,network,native-tls"
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_rust
|
|
|
|
if [ "$TERMUX_ARCH" = "x86_64" ]; then
|
|
local env_host=$(printf $CARGO_TARGET_NAME | tr a-z A-Z | sed s/-/_/g)
|
|
export CARGO_TARGET_${env_host}_RUSTFLAGS+=" -C link-arg=$($CC -print-libgcc-file-name)"
|
|
fi
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
local autoload_dir="$TERMUX_PREFIX/share/nushell/vendor/autoload"
|
|
mkdir -p "$autoload_dir"
|
|
sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" "$TERMUX_PKG_BUILDER_DIR/command-not-found.nu" \
|
|
>"$autoload_dir/command-not-found.nu"
|
|
}
|