commit 5226aa12ce7dc84d9478b5bc3e402e901ed034a7 Author: xhaa123 Date: Wed Apr 17 21:53:04 2024 +0800 usbutils 017-1 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 +}