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
|
2023-10-31 10:45:49 +01:00
|
|
|
pkgver=017
|
|
|
|
pkgrel=1
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc="A collection of USB tools to query connected USB devices"
|
2022-12-04 05:51:49 +01:00
|
|
|
arch=(x86_64)
|
2022-03-20 13:19:37 +01:00
|
|
|
url="https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/"
|
2023-10-22 21:36:55 +02:00
|
|
|
license=(
|
|
|
|
GPL-2.0-only
|
|
|
|
GPL-2.0-or-later
|
|
|
|
GPL-3.0-only
|
|
|
|
)
|
|
|
|
depends=(
|
|
|
|
glibc
|
|
|
|
hwdata
|
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
libusb
|
|
|
|
systemd
|
|
|
|
)
|
2022-12-04 05:51:49 +01:00
|
|
|
optdepends=(
|
|
|
|
'coreutils: for lsusb.py usage'
|
2023-05-27 17:43:04 +02:00
|
|
|
'python: for lsusb.py usage'
|
|
|
|
'sh: for usb-devices'
|
2022-12-04 05:51:49 +01:00
|
|
|
)
|
|
|
|
source=(https://www.kernel.org/pub/linux/utils/usb/usbutils/$pkgname-$pkgver.tar{.xz,.sign})
|
2023-10-31 10:45:49 +01:00
|
|
|
sha512sums=('eaebbc82eee4d940898f7a8de95ca49846c7c964e65c3d866b38735f8f3c8ccfed2b3a536bf2ef39a835a40a34c2273ac4d82b1012d0c693d4863cff14870d95'
|
2022-12-04 05:51:49 +01:00
|
|
|
'SKIP')
|
2023-10-31 10:45:49 +01:00
|
|
|
b2sums=('868c646ed6d38a38b9bd3ab85ba3a5e9362a97e476aeed6576c1b175caaf4ee688cb2c33756f02c9bf0aef9e7d58657331fc1c3b3314d86145b3d4f37124537e'
|
2022-12-04 05:51:49 +01:00
|
|
|
'SKIP')
|
|
|
|
validpgpkeys=('647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
prepare() {
|
2022-12-04 05:51:49 +01:00
|
|
|
cd $pkgname-$pkgver
|
2022-03-20 13:19:37 +01:00
|
|
|
autoreconf -fiv
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-12-04 05:51:49 +01:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--datadir=/usr/share/hwdata
|
2022-03-20 13:19:37 +01:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-12-04 05:51:49 +01:00
|
|
|
depends+=(
|
|
|
|
libusb libusb-1.0.so
|
|
|
|
systemd-libs libudev.so
|
|
|
|
)
|
|
|
|
|
|
|
|
cd $pkgname-$pkgver
|
2022-03-20 13:19:37 +01:00
|
|
|
make DESTDIR="$pkgdir" install
|
2023-05-27 17:43:04 +02:00
|
|
|
install -vDm 755 usbreset -t "$pkgdir/usr/bin"
|
2022-12-04 05:51:49 +01:00
|
|
|
install -vDm 644 NEWS -t "$pkgdir/usr/share/doc/$pkgname/"
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|