mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-11 23:00:52 +00:00
f9851983b6
This commit has been automatically submitted by Github Actions.
39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
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.18.0"
|
|
TERMUX_PKG_SRCURL=https://github.com/orf/gping/archive/refs/tags/gping-v$TERMUX_PKG_VERSION.zip
|
|
TERMUX_PKG_SHA256=a3e38f48221e115a1d58a2fd1c012cfb1c654fce90ea50f41d43ed300c3ba946
|
|
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
|
|
|
|
mv $TERMUX_PREFIX/lib/libz.so.1{,.tmp}
|
|
mv $TERMUX_PREFIX/lib/libz.so{,.tmp}
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|