# Maintainer: Simon Zeni pkgname=hwdata pkgver=0.373 pkgrel=0 pkgdesc="Hardware identification and configuration data" url="https://github.com/vcrhonek/hwdata" arch="noarch" license="GPL-2.0-or-later OR XFree86-1.1" subpackages="$pkgname-dev $pkgname-usb $pkgname-pci $pkgname-pnp $pkgname-net" source="$pkgname-$pkgver.tar.gz::https://github.com/vcrhonek/hwdata/archive/refs/tags/v$pkgver.tar.gz" options="!check" # just firmware data replaces="hwids" # be higher since hwids was a large date version provides="hwids=20220101-r$pkgrel" build() { ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --datadir=/usr/share \ --disable-blacklist } package() { depends=" $pkgname-usb=$pkgver-r$pkgrel $pkgname-pci=$pkgver-r$pkgrel $pkgname-pnp=$pkgver-r$pkgrel $pkgname-net=$pkgver-r$pkgrel " make -j1 DESTDIR="$pkgdir" install } dev() { default_dev depends="$pkgname=$pkgver-r$pkgrel" } usb() { pkgdesc="$pkgdesc (usb data)" provides="hwids-usb=20220101-r$pkgrel" replaces="hwids-usb" amove usr/share/hwdata/usb.ids } pci() { pkgdesc="$pkgdesc (pci data)" provides="hwids-pci=20220101-r$pkgrel" replaces="hwids-pci" amove usr/share/hwdata/pci.ids } net() { pkgdesc="$pkgdesc (net data)" provides="hwids-net=20220101-r$pkgrel" replaces="hwids-net" amove usr/share/hwdata/oui.txt amove usr/share/hwdata/iab.txt } pnp() { pkgdesc="$pkgdesc (pnp data)" amove usr/share/hwdata/pnp.ids } sha512sums=" cb940a1cad1b7b6cef0e4bca980b0e6f0af06bf157069645645bb4403d98fbb26bbeef580c984b73091375db09e96c8b672b52d5cf27d75581ff8f0e935d8294 hwdata-0.373.tar.gz "