From 5226aa12ce7dc84d9478b5bc3e402e901ed034a7 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Wed, 17 Apr 2024 21:53:04 +0800 Subject: [PATCH] usbutils 017-1 --- PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..b843efa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=usbutils +pkgver=017 +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=('GPL-2.0-only' 'GPL-2.0-or-later' 'GPL-3.0-only') +depends=('glibc' 'hwdata' 'libusb' 'systemd') +source=(https://kernel.org/pub/linux/utils/usb/${pkgname}/${pkgname}-${pkgver}.tar.xz) +sha256sums=(a6a25ffdcf9103e38d7a44732aca17073f4e602b92e4ae55625231a82702e05b) + +build() { + cd ${pkgname}-${pkgver} + + ${CONFIGURE} --datadir=/usr/share/hwdata + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install +}