blob: 645f567ea96a9d546cc2f54f21212d97fc7a70c1 (
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.2.5
8 release=1
9 source=(https://github.com/orf/gping/archive/refs/tags/$name-v$version.tar.gz)
10
11 build() {
12 mv $name-$name-v$version $name-v$version
13 cd $name-v$version
14
15 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
16 mkdir "$PKGMK_SOURCE_DIR/rust" || true
17 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
18
19 cargo update
20 cargo fetch --locked
21 cargo build --release --frozen
22
23 install -D -m 0755 -t $PKG/usr/bin target/release/gping
24 }
|