2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer: 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
|
2022-11-15 16:49:16 +01:00
|
|
|
pkgver=015
|
2022-03-20 13:19:37 +01:00
|
|
|
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' 'GPL3')
|
2022-11-15 16:49:16 +01:00
|
|
|
depends=('glibc' 'hwdata')
|
|
|
|
makedepends=('git' 'libusb' 'systemd')
|
2022-03-20 13:19:37 +01:00
|
|
|
optdepends=('python: for lsusb.py usage'
|
|
|
|
'coreutils: for lsusb.py usage')
|
2022-11-15 16:49:16 +01:00
|
|
|
source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git#commit=79b796f9")
|
|
|
|
sha512sums=('SKIP')
|
2022-03-20 13:19:37 +01:00
|
|
|
validpgpkeys=('647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
|
|
|
|
|
|
|
prepare() {
|
2022-11-15 16:49:16 +01:00
|
|
|
cd "$pkgname"
|
2022-03-20 13:19:37 +01:00
|
|
|
autoreconf -fiv
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-11-15 16:49:16 +01:00
|
|
|
cd "$pkgname"
|
2022-03-20 13:19:37 +01:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--datadir=/usr/share/hwdata
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
depends+=('libusb-1.0.so' 'libudev.so')
|
2022-11-15 16:49:16 +01:00
|
|
|
cd "$pkgname"
|
2022-03-20 13:19:37 +01:00
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -vDm 644 NEWS -t "${pkgdir}/usr/share/doc/${pkgname}/"
|
|
|
|
}
|