contrib/gping/Pkgfile

25 lines
612 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
2022-03-05 17:19:57 +01:00
version=1.3.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() {
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"
cargo update
cargo fetch --locked
cargo build --release --frozen
install -D -m 0755 -t $PKG/usr/bin target/release/gping
}