upg usbutils

This commit is contained in:
joborun linux 2022-12-04 06:51:49 +02:00
parent 328078b730
commit 1bc91c6830
3 changed files with 30 additions and 19 deletions

View File

@ -7,7 +7,7 @@
pkgname=usbutils pkgname=usbutils
pkgver=015 pkgver=015
pkgrel=01 pkgrel=02
pkgdesc="A collection of USB tools to query connected USB devices w/o systemd" pkgdesc="A collection of USB tools to query connected USB devices w/o systemd"
arch=(x86_64) arch=(x86_64)
url="https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/" url="https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/"
@ -55,3 +55,5 @@ b2sums=('1074c7159e9e6729f03f98e1f38fa0b3fef3e744b5297e6d97a5fc44ea374e2d5a0c481
sha256sums=(c3b451bb1f4ff9f6356cac5a6956a9ac8e85d81651af56a29e689f94fa6fda6e # usbutils-015.tar.xz sha256sums=(c3b451bb1f4ff9f6356cac5a6956a9ac8e85d81651af56a29e689f94fa6fda6e # usbutils-015.tar.xz
6d01cfd835f504e1e0f0dbc09bbcf99c7abf6de6bd446af957771b2b6f8bc742) # usbutils-015.tar.sign 6d01cfd835f504e1e0f0dbc09bbcf99c7abf6de6bd446af957771b2b6f8bc742) # usbutils-015.tar.sign

View File

@ -6,34 +6,44 @@
pkgname=usbutils pkgname=usbutils
pkgver=015 pkgver=015
pkgrel=1 pkgrel=2
pkgdesc="A collection of USB tools to query connected USB devices" pkgdesc="A collection of USB tools to query connected USB devices"
arch=('x86_64') arch=(x86_64)
url="https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/" url="https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/"
license=('GPL2' 'GPL3') license=(GPL2 GPL3)
depends=('glibc' 'hwdata') depends=(glibc hwdata)
makedepends=('git' 'libusb' 'systemd') makedepends=(libusb systemd)
optdepends=('python: for lsusb.py usage' optdepends=(
'coreutils: for lsusb.py usage') 'python: for lsusb.py usage'
source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git#commit=79b796f9") 'coreutils: for lsusb.py usage'
sha512sums=('SKIP') )
source=(https://www.kernel.org/pub/linux/utils/usb/usbutils/$pkgname-$pkgver.tar{.xz,.sign})
sha512sums=('cda0070138400703d7429d39dee49130aedaa704292531e6af57b347cc62422ca609540650926e74335f71d67d7d4655418be4824e1eb8a2b065c7b395feaa87'
'SKIP')
b2sums=('1074c7159e9e6729f03f98e1f38fa0b3fef3e744b5297e6d97a5fc44ea374e2d5a0c481e14b2a034bca201048b1305c3877dbb15e3c4c04b228b4036048d8904'
'SKIP')
validpgpkeys=('647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman <gregkh@linuxfoundation.org> validpgpkeys=('647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman <gregkh@linuxfoundation.org>
prepare() { prepare() {
cd "$pkgname" cd $pkgname-$pkgver
autoreconf -fiv autoreconf -fiv
} }
build() { build() {
cd "$pkgname" cd $pkgname-$pkgver
./configure --prefix=/usr \ ./configure \
--prefix=/usr \
--datadir=/usr/share/hwdata --datadir=/usr/share/hwdata
make make
} }
package() { package() {
depends+=('libusb-1.0.so' 'libudev.so') depends+=(
cd "$pkgname" libusb libusb-1.0.so
systemd-libs libudev.so
)
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
install -vDm 644 NEWS -t "${pkgdir}/usr/share/doc/${pkgname}/" install -vDm 644 NEWS -t "$pkgdir/usr/share/doc/$pkgname/"
} }

View File

@ -3,4 +3,3 @@ autoconf
automake automake