2021-09-15 23:46:31 +10:00
|
|
|
# Description: Ping, but with a graph
|
|
|
|
# URL: https://github.com/orf/gping
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
|
|
# Depends on: rust
|
|
|
|
|
|
|
|
name=gping
|
2022-06-19 18:41:13 +02:00
|
|
|
version=1.3.2
|
2021-09-15 23:46:31 +10:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/orf/gping/archive/refs/tags/$name-v$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
mv $name-$name-v$version $name-v$version
|
|
|
|
cd $name-v$version
|
|
|
|
|
|
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
|
|
|
mkdir "$PKGMK_SOURCE_DIR/rust" || true
|
|
|
|
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
|
|
|
|
2022-06-19 18:41:13 +02:00
|
|
|
cargo build --release
|
2021-09-15 23:46:31 +10:00
|
|
|
|
|
|
|
install -D -m 0755 -t $PKG/usr/bin target/release/gping
|
|
|
|
}
|