Files
termux-packages/packages/gping/build.sh
termux-pacman-bot 4daeffc3fa tree-wide: remove all traces of the libz.so-moving workaround from Rust packages
- I never believed the workaround of moving `libz.so` was ideal, so it seems correct that it no longer seems to be necessary to build any present-day Rust project for Termux, and is being removed here.

- Also remove the traces in `rust`'s `build.sh` of similar historical workarounds for `liblzma.so` and `libtinfo.so.6`

- All were removed in https://github.com/termux/termux-packages/pull/23118
2025-08-27 11:04:57 +00:00

30 lines
880 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/orf/gping
TERMUX_PKG_DESCRIPTION="Ping, but with a graph"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm"
TERMUX_PKG_VERSION="1.20.1"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/orf/gping/archive/refs/tags/gping-v$TERMUX_PKG_VERSION.zip
TERMUX_PKG_SHA256=3da3b39f92a4bc9fdd42799410e9ad1d58ae317b5f13649ffcb31d8c11a80674
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+\.\d+"
TERMUX_PKG_BUILD_DEPENDS="zlib"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
termux_setup_rust
# conflicts with rust host build
unset CFLAGS
}
termux_step_make() {
cd gping
cargo build --jobs $TERMUX_PKG_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release
cd ..
}
termux_step_make_install() {
install -Dm755 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/gping
}