57 lines
1.9 KiB
Bash
57 lines
1.9 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=usbutils
|
|
pkgver=016
|
|
pkgrel=02 ## psychotic arch maintainer rebuild the pkg a few hours later to change the looks of the script
|
|
pkgdesc="A collection of USB tools to query connected USB devices w/o systemd"
|
|
url="https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/"
|
|
depends=(glibc hwdata)
|
|
#makedepends=(git libusb)
|
|
makedepends=(libusb)
|
|
optdepends=('python: for lsusb.py usage'
|
|
'coreutils: for lsusb.py usage'
|
|
'sh: for usb-devices')
|
|
#source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git#commit=79b796f9")
|
|
source=(https://www.kernel.org/pub/linux/utils/usb/usbutils/$pkgname-$pkgver.tar{.xz,.sign})
|
|
|
|
prepare() {
|
|
# cd "$pkgname"
|
|
cd $pkgname-$pkgver
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
# cd "$pkgname"
|
|
cd $pkgname-$pkgver
|
|
./configure --prefix=/usr \
|
|
--datadir=/usr/share/hwdata \
|
|
--with-systemd=no
|
|
make
|
|
}
|
|
|
|
package() {
|
|
depends+=('libusb-1.0.so' 'libudev.so')
|
|
# cd "$pkgname"
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
install -vDm 755 usbreset -t "$pkgdir/usr/bin"
|
|
install -vDm 644 NEWS -t "${pkgdir}/usr/share/doc/${pkgname}/"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL-2.0-only' 'GPLG-2.0-or-later' 'GPL-3.0-only')
|
|
|
|
validpgpkeys=('647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
|
|
|
sha256sums=(75050b3a113a3d07b9e822fb367b8c7ef3524027d33aea7c9febfab038511e43 # usbutils-016.tar.xz
|
|
ca772ce0a96703749af116ca24c9cf1e06dbc569c6a682de6261b7cd954d1154) # usbutils-016.tar.sign
|
|
|
|
## b699cec93c16715a93671138a708efa0f277295d9105132764461026a22ffde8 usbutils-016-02-x86_64.pkg.tar.lz
|