summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6d1f6822e337f6e58fb1f7eeb2fe98233958b50 (plain)
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
29
30
31
32
# Contributor: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
# Maintainer: Sean Greenslade <aur@seangreenslade.com>
pkgname=usbtop-git
pkgver=0.2
pkgrel=1
pkgdesc="top-like utility that shows an estimated instantaneous bandwidth on USB buses and devices"
arch=('i686' 'x86_64')
url="https://github.com/aguinet/usbtop"
license=('BSD')
depends=('boost-libs' 'libpcap')
provides=('usbtop')
conflicts=('usbtop')
makedepends=('boost' 'cmake' 'git')
source=("git+https://github.com/aguinet/usbtop.git")
sha256sums=('SKIP')

pkgver() {
	cd usbtop
	git describe --tags | sed 's/release-//g' | sed 's/-/./g'
}

build() {
	cd usbtop
	cmake -DCMAKE_INSTALL_PREFIX="/usr" .
	make
}

package() {
	cd usbtop
	make DESTDIR="$pkgdir/" install
	mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin"
}