contrib/gping/Pkgfile

19 lines
548 B
Plaintext
Raw Normal View History

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
2023-01-27 22:50:46 +01:00
version=1.8.0
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
}