[arch-commits] Commit in (4 files)
Kpcyrd
kpcyrd at archlinux.org
Thu Jan 9 01:48:31 UTC 2020
Date: Thursday, January 9, 2020 @ 01:48:30
Author: kpcyrd
Revision: 550963
addpkg: bandwhich 0.7.0-1
Added:
bandwhich/
bandwhich/repos/
bandwhich/trunk/
bandwhich/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Added: bandwhich/trunk/PKGBUILD
===================================================================
--- bandwhich/trunk/PKGBUILD (rev 0)
+++ bandwhich/trunk/PKGBUILD 2020-01-09 01:48:30 UTC (rev 550963)
@@ -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