[arch-commits] Commit in bandwhich/repos (community-x86_64 community-x86_64/PKGBUILD)

Kpcyrd kpcyrd at archlinux.org
Thu Jan 9 01:48:46 UTC 2020


    Date: Thursday, January 9, 2020 @ 01:48:46
  Author: kpcyrd
Revision: 550964

archrelease: copy trunk to community-x86_64

Added:
  bandwhich/repos/community-x86_64/
  bandwhich/repos/community-x86_64/PKGBUILD
    (from rev 550963, bandwhich/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: bandwhich/repos/community-x86_64/PKGBUILD (from rev 550963, bandwhich/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-01-09 01:48:46 UTC (rev 550964)
@@ -0,0 +1,34 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+# Contributor: Aram Drevekenin <aram at poor.dev>
+
+pkgname=bandwhich
+pkgver=0.7.0
+pkgrel=1
+pkgdesc='Terminal bandwidth utilization tool'
+url='https://github.com/imsnif/bandwhich'
+arch=('x86_64')
+license=('MIT')
+depends=('gcc-libs')
+makedepends=('cargo')
+source=(https://github.com/imsnif/${pkgname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('66693eeac5895b867f2912da434093ade0d2addab0bab3e325969ac5f57b95ecbf985de410e42f14d8e8267edb5c780eb82aa2ab6be4e846ce8516122ab45502')
+b2sums=('9951ee760f39b32240f8adbf80deef7757b1b5a57a65a3801ab039a6d723b923f7e75916c05008e81ee1b82dcf98bc8d85062b863611c62ca9ea07aaa5c016d7')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  cargo build --release --locked
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  cargo test --release --locked
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  install -Dm 755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+  install -Dm 644 "docs/bandwhich.1" -t "${pkgdir}/usr/share/man/man1"
+  install -Dm 644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list