termux-packages/packages/nushell/build.sh

31 lines
878 B
Bash
Raw Normal View History

2020-04-28 09:01:16 +02:00
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"
2022-02-19 04:57:35 +01:00
TERMUX_PKG_VERSION=0.44.0
2020-04-28 09:01:16 +02:00
TERMUX_PKG_SRCURL=https://github.com/nushell/nushell/archive/$TERMUX_PKG_VERSION.tar.gz
2022-02-19 04:57:35 +01:00
TERMUX_PKG_SHA256=94bb003fd05b604a174a686c40286fef460bc06616a7d273c387a54a07576ecc
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="openssl, zlib"
2020-04-28 09:01:16 +02:00
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
2021-07-15 13:59:54 +02:00
termux_step_pre_configure() {
if [ $TERMUX_ARCH = "i686" ]; then
2021-07-15 20:07:31 +02:00
RUSTFLAGS+=" -C link-arg=-latomic"
2021-07-15 13:59:54 +02:00
fi
2022-02-19 04:57:35 +01:00
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
2021-07-15 13:59:54 +02:00
}