2021-09-15 15:46:31 +02: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-12-21 20:58:46 +01:00
|
|
|
version=1.6.3
|
2021-09-15 15:46:31 +02: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 11:36:34 +01:00
|
|
|
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
|
2021-09-15 15:46:31 +02:00
|
|
|
|
2022-12-10 11:36:34 +01:00
|
|
|
cargo build --release --manifest-path $name-$name-v$version/Cargo.toml
|
2021-09-15 15:46:31 +02:00
|
|
|
|
2022-12-10 11:36:34 +01:00
|
|
|
install -Dt $PKG/usr/bin $name-$name-v$version/target/release/$name
|
2021-09-15 15:46:31 +02:00
|
|
|
}
|