Date: Saturday, October 15, 2022 @ 13:08:59
  Author: felixonmars
Revision: 1329176

archrelease: copy trunk to community-x86_64

Added:
  trippy/repos/community-x86_64/
  trippy/repos/community-x86_64/PKGBUILD
    (from rev 1329175, trippy/trunk/PKGBUILD)
  trippy/repos/community-x86_64/trippy.install
    (from rev 1329175, trippy/trunk/trippy.install)

----------------+
 PKGBUILD       |   34 ++++++++++++++++++++++++++++++++++
 trippy.install |    9 +++++++++
 2 files changed, 43 insertions(+)

Copied: trippy/repos/community-x86_64/PKGBUILD (from rev 1329175, 
trippy/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2022-10-15 13:08:59 UTC (rev 1329176)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=trippy
+pkgver=0.6.0
+pkgrel=1
+pkgdesc='A network diagnostic tool inspired by mtr'
+arch=('x86_64')
+url='https://trippy.cli.rs'
+license=('Apache')
+depends=('gcc-libs' 'libcap')
+makedepends=('rust')
+install=$pkgname.install
+source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$pkgname/$pkgver/download";)
+b2sums=('2ba4275df38e8a1d73b7ba631fdd97e3f3b3a9ec9d8c0e4ec2ac821f0c1ad1928845791db8e2aebcf960e8892c43bba337d181af61ee48bdc5a4d9e39aef8b76')
+
+prepare() {
+  cd $pkgname-$pkgver
+  cargo fetch --locked
+}
+
+build() {
+  cd $pkgname-$pkgver
+  cargo build --release --locked --offline
+}
+
+check() {
+  cd $pkgname-$pkgver
+  cargo test --locked --offline
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dm755 -t "$pkgdir"/usr/bin target/release/trip
+}

Copied: trippy/repos/community-x86_64/trippy.install (from rev 1329175, 
trippy/trunk/trippy.install)
===================================================================
--- community-x86_64/trippy.install                             (rev 0)
+++ community-x86_64/trippy.install     2022-10-15 13:08:59 UTC (rev 1329176)
@@ -0,0 +1,9 @@
+post_install() {
+  setcap cap_net_raw+p usr/bin/trip
+}
+
+post_upgrade() {
+  post_install
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to