aports/testing/trippy/APKBUILD
2025-01-04 22:19:00 +00:00

43 lines
1.4 KiB
Text

# Contributor: Simon Frankenberger <simon-alpine@fraho.eu>
# Maintainer: Simon Frankenberger <simon-alpine@fraho.eu>
pkgname=trippy
pkgver=0.12.2
pkgrel=0
pkgdesc="combines the functionality of traceroute and ping and is designed to assist with the analysis of networking issues."
url="https://github.com/fujiapple852/trippy/"
arch="all !loongarch64" # loongarch64: blocked by libc crate
license="Apache-2.0"
makedepends="cargo cargo-auditable"
subpackages="
$pkgname-bash-completion
$pkgname-zsh-completion
"
source="https://github.com/fujiapple852/trippy/archive/$pkgver/trippy-v$pkgver.tar.gz"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --release --frozen
local compgen="target/release/trip --generate"
[ -d completions ] || mkdir -v completions
$compgen bash >"completions/$pkgname"
$compgen zsh >"completions/_$pkgname"
}
check() {
cargo auditable test --frozen
}
package() {
install -Dm 755 -t "$pkgdir"/usr/bin target/release/trip
install -Dm 644 -t "$pkgdir"/usr/share/doc/"$pkgname" README.md
install -Dm 644 "completions/$pkgname" -t "$pkgdir/usr/share/bash-completion/completions/"
install -Dm 644 "completions/_$pkgname" -t "$pkgdir/usr/share/zsh/site-functions/"
}
sha512sums="
703db726d28f555061dae415ca684e15ea342a733ca3318410b424ab4e45e9b411ca0956449050e8026b0db3ffa09d5ae9a7e724db7ccfeff054511ee4705586 trippy-v0.12.2.tar.gz
"