termux-packages/packages/gping/build.sh
Henrik Grimler 3d2ec5c440
gping: bump package
1.2.5 is missing on repository
2021-09-14 23:27:20 +02:00

24 lines
715 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.2.5
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/orf/gping/archive/refs/tags/gping-v$TERMUX_PKG_VERSION.zip
TERMUX_PKG_SHA256=d5766d59dd40929fc231d00f60a7337c2b3e66c5f12d3d974672be034ef71fca
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
termux_setup_rust
}
termux_step_make() {
cd gping
cargo build --jobs $TERMUX_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release
cd ..
}
termux_step_make_install() {
install -Dm755 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/gping
}