summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7c86ce5da2c5017e6ac3456da0eb3a612b17c333 (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
33
34
35
36
37
38
39
40
41
42
43
# Maintainer:  Vincent Grande <shoober420@gmail.com>
# Contributor: David Runge <dvzrv@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
# Contributor: Curtis Campbell <curtisjamescampbell@hotmail.com>

pkgname=usbutils-git
pkgver=013
pkgrel=1
pkgdesc="A collection of USB tools to query connected USB devices"
arch=('x86_64')
url="https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/"
license=('GPL2')
depends=('glibc' 'hwids')
makedepends=('libusb')
optdepends=('python: for lsusb.py usage'
            'coreutils: for lsusb.py usage')
provides=(usbutils)
conflicts=(usbutils)
source=("git+https://github.com/gregkh/usbutils")
b2sums=('SKIP')
#validpgpkeys=('647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman <gregkh@linuxfoundation.org>

pkgver() {
  cd usbutils
  git describe --tags | sed 's/-/+/g'
}

build() {
  cd usbutils

  ./autogen.sh
  ./configure --prefix=/usr \
              --datadir=/usr/share/hwdata
  make
}

package() {
  cd usbutils
  make DESTDIR="$pkgdir" install
  install -vDm 644 {README.md,NEWS} -t "${pkgdir}/usr/share/doc/${pkgname}/"
}