jobcore/usbutils/PKGBUILD-arch

52 lines
1.6 KiB
Text
Raw Normal View History

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-22 16:06:09 +02:00
pkgver=016
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 16:06:09 +02:00
license=('GPL-2.0-only' 'GPLG-2.0-or-later' 'GPL-3.0-only')
2022-12-04 05:51:49 +01:00
depends=(glibc hwdata)
makedepends=(libusb systemd)
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-22 16:06:09 +02:00
sha512sums=('4483038bf91c056cd2977f5e7f449c0a62d9152d6f5d64ab7bde438ab9c1c56fe524ba10b35781c2828edd0fe89379dbaed78fa7ffe78903cae0c4e3c460f9a0'
2022-12-04 05:51:49 +01:00
'SKIP')
2023-10-22 16:06:09 +02:00
b2sums=('2f3af61e5a7abf48cdf0a4aebc901ca1570007b54d11ae74572e16bdeb2d8e73844d76af54bd812d6d4b84ddaf6e956132ecc9a8a2849a7bffc0643e29115a49'
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
}