forked from imsnif/bandwhich
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
28 lines (25 loc) · 814 Bytes
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Aram Drevekenin <aram@poor.dev>
pkgname=what
pkgver=0.3.7
pkgrel=2
makedepends=('rust' 'cargo')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
pkgdesc="Display network utilization by process, connection and remote address"
url="https://github.com/imsnif/what"
source=("https://github.com/imsnif/$pkgname/archive/$pkgver.tar.gz")
license=('MIT')
sha256sums=("b60f002bd095cad88dd1cd1b4bcbcf65482e52d73fdff961455133b8a4ee4666")
check() {
cd "$pkgname-$pkgver"
cargo test --release --locked
}
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "target/release/what" "$pkgdir/usr/bin/what"
install -Dm644 "docs/what.1" "$pkgdir/usr/share/man/man1/what.1"
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}