From 3c4b594849994688d7d8e0638068acd963410f03 Mon Sep 17 00:00:00 2001 From: Yaksh Bariya Date: Sat, 19 Feb 2022 09:27:35 +0530 Subject: [PATCH] nushell: update to 0.44.0 --- packages/nushell/Cargo.toml.patch | 9 ++++----- packages/nushell/build.sh | 17 +++++++++++++++-- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/packages/nushell/Cargo.toml.patch b/packages/nushell/Cargo.toml.patch index 4fb8f2cac..9a65b7416 100644 --- a/packages/nushell/Cargo.toml.patch +++ b/packages/nushell/Cargo.toml.patch @@ -1,11 +1,10 @@ ---- ./Cargo.toml 2021-06-22 10:52:33.000000000 +0530 -+++ ./Cargo.toml.mod 2021-06-30 11:38:24.620496505 +0530 -@@ -76,8 +76,6 @@ +--- ./Cargo.toml.orig 2022-02-19 09:22:55.090670811 +0530 ++++ ./Cargo.toml 2022-02-19 09:25:05.340670761 +0530 +@@ -71,7 +71,6 @@ default = [ "nu-cli/shadow-rs", -- "sys", -- "ps", +- "sys-support", "ctrlc-support", "which-support", "term-support", diff --git a/packages/nushell/build.sh b/packages/nushell/build.sh index 31b4d22e9..dc70c2981 100644 --- a/packages/nushell/build.sh +++ b/packages/nushell/build.sh @@ -2,9 +2,9 @@ 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.35.0 +TERMUX_PKG_VERSION=0.44.0 TERMUX_PKG_SRCURL=https://github.com/nushell/nushell/archive/$TERMUX_PKG_VERSION.tar.gz -TERMUX_PKG_SHA256=2e93366a2f089bdbe0ae52eafcda5390119642c66e541b26e8eeb1ab4bc13823 +TERMUX_PKG_SHA256=94bb003fd05b604a174a686c40286fef460bc06616a7d273c387a54a07576ecc TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_DEPENDS="openssl, zlib" TERMUX_PKG_BUILD_IN_SRC=true @@ -14,4 +14,17 @@ termux_step_pre_configure() { if [ $TERMUX_ARCH = "i686" ]; then RUSTFLAGS+=" -C link-arg=-latomic" fi + + mv $TERMUX_PREFIX/lib/libz.so.1{,.tmp} + mv $TERMUX_PREFIX/lib/libz.so{,.tmp} +} + +termux_step_post_make_install() { + mv $TERMUX_PREFIX/lib/libz.so.1{.tmp,} + mv $TERMUX_PREFIX/lib/libz.so{.tmp,} +} + +termux_step_post_massage() { + rm -f lib/libz.so.1 + rm -f lib/libz.so }