Skip to content

Commit

Permalink
user/trippy: new package
Browse files Browse the repository at this point in the history
  • Loading branch information
ttyyls committed Jan 5, 2025
1 parent 2e01734 commit 6bacc20
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions user/trippy/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
pkgname = "trippy"
pkgver = "0.12.2"
pkgrel = 0
build_style = "cargo"
make_build_args = ["--bin", "trip"]
make_build_args = [*make_build_args]
hostmakedepends = ["cargo-auditable"]
makedepends = ["rust-std"]
pkgdesc = "Network diagnostic combining traceroute and ping"
maintainer = "ttyyls <[email protected]>"
license = "Apache-2.0"
url = "https://trippy.rs"
source = (
f"https://github.com/fujiapple852/trippy/archive/refs/tags/{pkgver}.tar.gz"
)
sha256 = "6f23549e5f398113ecd0d2f15c829f5ab84fcdf99dde9942c61746e72f990085"
# generates completions with host binary
options = ["!cross"]


def post_build(self):
for shell in ["bash", "fish", "zsh"]:
with open(self.cwd / f"trip.{shell}", "w") as outf:
self.do(
f"target/{self.profile().triplet}/release/trip",
"--generate",
shell,
stdout=outf,
)


def install(self):
self.install_bin(f"target/{self.profile().triplet}/release/trip")
for shell in ["bash", "fish", "zsh"]:
self.install_completion(f"trip.{shell}", shell, name="trip")

0 comments on commit 6bacc20

Please sign in to comment.