termux-packages/packages/angle-grinder/build.sh

22 lines
748 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/rcoh/angle-grinder
TERMUX_PKG_DESCRIPTION="Slice and dice logs on the command line"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.18.0
TERMUX_PKG_SRCURL="https://github.com/rcoh/angle-grinder/archive/v$TERMUX_PKG_VERSION.tar.gz"
TERMUX_PKG_SHA256=7a282d9eff88bb2e224b02d80b887de92286e451abf8a193248d30136d08f4e0
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_ENABLE_CLANG16_PORTING=false
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
# ```
# ld: error: undefined symbol: __emutls_get_address
# ```
# It isn't able to find/link with `libgcc` during arm build.
if [[ "${TERMUX_ARCH}" == "arm" ]]; then
RUSTFLAGS+=" -C link-arg=$($CC -print-libgcc-file-name)"
fi
}