jobcore/usbutils/PKGBUILD
2022-03-20 14:19:37 +02:00

46 lines
1.4 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"
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=usbutils
pkgver=014
pkgrel=02
pkgdesc="A collection of USB tools to query connected USB devices w/o systemd"
arch=('x86_64')
url="https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/"
depends=('glibc' 'hwdata')
makedepends=('libusb')
optdepends=('python: for lsusb.py usage'
'coreutils: for lsusb.py usage')
source=("https://www.kernel.org/pub/linux/utils/usb/usbutils/${pkgname}-${pkgver}.tar"{.xz,.sign})
prepare() {
cd "$pkgname-$pkgver"
autoreconf -fiv
}
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr \
--datadir=/usr/share/hwdata \
--with-systemd=no
make
}
package() {
depends+=('libusb-1.0.so' 'libudev.so')
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -vDm 644 NEWS -t "${pkgdir}/usr/share/doc/${pkgname}/"
}
#---- license gpg-key sha256sums ----
license=('GPL2' 'GPL3')
validpgpkeys=('647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sha256sums=(3a079cfad60560227b67192482d7813bf96326fcbb66c04254839715f276fc69 # usbutils-014.tar.xz
ba82e549c264ad6bbd17eb8ab2dc9e701fada79cf98bad54a05133729caa29f4) # usbutils-014.tar.sign