Date: Thursday, November 12, 2020 @ 10:40:50 Author: dvzrv Revision: 400494
upgpkg: usbutils 013-1: Upgrade to 013. Switch to correct license (GPL2). Update pkgdesc based on upstream README.md. Switch url to upstream git repository. Run autoreconf in prepare() instead of autogen.sh in build(). Remove unused configure flag (--disable-zlib). Add all available sodeps in package() and the respective packages to makedepends. Remove removal of conflicting files (upstream relies on hwids, too). Add docs. Update maintainer info. Modified: usbutils/trunk/PKGBUILD ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-11-12 10:34:06 UTC (rev 400493) +++ PKGBUILD 2020-11-12 10:40:50 UTC (rev 400494) @@ -1,32 +1,42 @@ -# Maintainer: Tobias Powalowski <[email protected]> +# Maintainer: David Runge <[email protected]> +# Contributor: Tobias Powalowski <[email protected]> # Contributor: Tom Gundersen <[email protected]> # Contributor: Judd Vinet <[email protected]> # Contributor: Curtis Campbell <[email protected]> + pkgname=usbutils -pkgver=012 -pkgrel=2 -pkgdesc="USB Device Utilities" -arch=(x86_64) -license=('GPL') -depends=('libusb' 'hwids') +pkgver=013 +pkgrel=1 +pkgdesc="A collection of USB tools to query connected USB devices" +arch=('x86_64') +url="https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/" +license=('GPL2') +depends=('glibc' 'hwids') +makedepends=('libusb' 'systemd') optdepends=('python: for lsusb.py usage' 'coreutils: for lsusb.py usage') -url="http://linux-usb.sourceforge.net/" source=("https://www.kernel.org/pub/linux/utils/usb/usbutils/${pkgname}-${pkgver}.tar"{.xz,.sign}) -md5sums=('0da98eb80159071fdbb00905390509d9' - 'SKIP') +sha512sums=('eb1751e5b82f7a1bdffc667662cebee6fd42f466e59d4eb4c98f0d3723d740305377da1df1ba5831402fddbbd1697bbfa2abd22d9ed175e2dee55d6d007e9e54' + 'SKIP') +b2sums=('d6e7925e180ba90f27ca12f13ed985f34e51b230ec08188c91bf39bb8e64baa319aa63d473318e1a4cb21b53808e8610f837ea0bb85657072f1c70107d037873' + 'SKIP') validpgpkeys=('647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman <[email protected]> +prepare() { + cd "$pkgname-$pkgver" + autoreconf -vfi +} + build() { - cd $pkgname-$pkgver - ./autogen.sh - ./configure --prefix=/usr --datadir=/usr/share/hwdata --disable-zlib + cd "$pkgname-$pkgver" + ./configure --prefix=/usr \ + --datadir=/usr/share/hwdata make } package() { - cd $pkgname-$pkgver + depends+=('libusb-1.0.so' 'libudev.so') + cd "$pkgname-$pkgver" make DESTDIR="$pkgdir" install - # this is now in the hwids package - rm -rf $pkgdir/usr/{share/hwdata,sbin} + install -vDm 644 {README.md,NEWS} -t "${pkgdir}/usr/share/doc/${pkgname}/" }
