blob: f52a0ab7ffb4f5931c5d99c1be8bbe39231701fc (
plain)
1 # Description: Ping, but with a graph
2 # URL: https://github.com/orf/gping
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: rust
5
6 name=gping
7 version=1.7.0
8 release=1
9 source=(https://github.com/orf/gping/archive/refs/tags/$name-v$version.tar.gz)
10
11 build() {
12 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
13 [[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
14
15 cargo build --release --manifest-path $name-$name-v$version/Cargo.toml
16
17 install -Dt $PKG/usr/bin $name-$name-v$version/target/release/$name
18 }
|