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
|
2023-01-27 22:50:46 +01:00
|
|
|
version=1.8.0
|
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() {
|
|
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
2022-12-10 10:36:34 +00:00
|
|
|
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
|
2021-09-15 23:46:31 +10:00
|
|
|
|
2022-12-10 10:36:34 +00:00
|
|
|
cargo build --release --manifest-path $name-$name-v$version/Cargo.toml
|
2021-09-15 23:46:31 +10:00
|
|
|
|
2022-12-10 10:36:34 +00:00
|
|
|
install -Dt $PKG/usr/bin $name-$name-v$version/target/release/$name
|
2021-09-15 23:46:31 +10:00
|
|
|
}
|